*Improved target selection for Brutallus' Burn, thanks sunwell

--HG--
branch : trunk
This commit is contained in:
maximius
2009-10-20 01:47:29 -07:00
parent 18290c3efe
commit 1912cd7b26

View File

@@ -291,9 +291,15 @@ struct TRINITY_DLL_DECL boss_brutallusAI : public ScriptedAI
if (BurnTimer < diff)
{
if (Unit *target = SelectUnit(SELECT_TARGET_RANDOM, 0))
target->CastSpell(target, SPELL_BURN, true);
BurnTimer = 60000;
if (Unit *target = SelectTarget(SELECT_TARGET_RANDOM, 0, 100, true))
if(!target->HasAura(SPELL_BURN))
{
target->CastSpell(target, SPELL_BURN, true);
BurnTimer = urand(60000,180000);
} else
BurnTimer = 1000 + diff; // if target has SPELL_BURN, wait a bit.
else
BurnTimer = urand(60000,180000); // no targets!?
} else BurnTimer -= diff;
if (BerserkTimer < diff && !Enraged)