aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormaximius <none@none>2009-10-30 23:35:35 -0700
committermaximius <none@none>2009-10-30 23:35:35 -0700
commit08f99a7794bfa8c19efa4b52a26c166575f9d6d4 (patch)
tree7681c5555e4fe05f6ecc4832bec32a108bfbadb9 /src
parent4e242bae377116d95021904cb4a42cceea981621 (diff)
*Proper target selection in boss_ignis.cpp
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/bindings/scripts/scripts/northrend/ulduar/ulduar/boss_ignis.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/bindings/scripts/scripts/northrend/ulduar/ulduar/boss_ignis.cpp b/src/bindings/scripts/scripts/northrend/ulduar/ulduar/boss_ignis.cpp
index 2835b2a42bb..33d86cd2bd5 100644
--- a/src/bindings/scripts/scripts/northrend/ulduar/ulduar/boss_ignis.cpp
+++ b/src/bindings/scripts/scripts/northrend/ulduar/ulduar/boss_ignis.cpp
@@ -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;