mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 17:27:36 +01:00
*Proper target selection in boss_ignis.cpp
--HG-- branch : trunk
This commit is contained in:
@@ -73,20 +73,21 @@ struct TRINITY_DLL_DECL boss_ignis_AI : public BossAI
|
||||
|
||||
if (FLAME_JETS_Timer <= diff)
|
||||
{
|
||||
DoCast(m_creature,SPELL_FLAME_JETS);
|
||||
DoCast(SPELL_FLAME_JETS);
|
||||
DoScriptText(SAY_SLAY, m_creature);
|
||||
FLAME_JETS_Timer = 25000;
|
||||
} else FLAME_JETS_Timer -= diff;
|
||||
|
||||
if (SCORCH_Timer <= diff)
|
||||
{
|
||||
DoCast(m_creature->getVictim(),SPELL_SCORCH);
|
||||
DoCastVictim(SPELL_SCORCH);
|
||||
SCORCH_Timer = 20000;
|
||||
} else SCORCH_Timer -= diff;
|
||||
|
||||
if (SLAG_POT_Timer <= diff)
|
||||
{
|
||||
DoCast(m_creature,SPELL_SLAG_POT);
|
||||
if (Unit *pTarget = SelectTarget(SELECT_TARGET_RANDOM, 0, 100, true))
|
||||
DoCast(pTarget,SPELL_SLAG_POT);
|
||||
DoScriptText(SAY_SLAY, m_creature);
|
||||
SLAG_POT_Timer = 30000;
|
||||
} else SLAG_POT_Timer -= diff;
|
||||
|
||||
Reference in New Issue
Block a user