diff options
author | maanuel <none@none> | 2009-12-06 20:15:51 -0300 |
---|---|---|
committer | maanuel <none@none> | 2009-12-06 20:15:51 -0300 |
commit | f932506252e312e90ec9bb53af15ccb39f1351f0 (patch) | |
tree | e21a812c7ad2b4f253e63c8b6ba2aefbeed0a29e | |
parent | 0a25c76c3179772e79488bd138a961365946fee7 (diff) |
Remove hack for spell Void Shifted in ZuramatAI.
--HG--
branch : trunk
-rw-r--r-- | src/bindings/scripts/scripts/northrend/violet_hold/boss_zuramat.cpp | 28 |
1 files changed, 4 insertions, 24 deletions
diff --git a/src/bindings/scripts/scripts/northrend/violet_hold/boss_zuramat.cpp b/src/bindings/scripts/scripts/northrend/violet_hold/boss_zuramat.cpp index 19b4f191d99..9c26d39a4c8 100644 --- a/src/bindings/scripts/scripts/northrend/violet_hold/boss_zuramat.cpp +++ b/src/bindings/scripts/scripts/northrend/violet_hold/boss_zuramat.cpp @@ -15,7 +15,6 @@ enum Spells SPELL_SUMMON_VOID_SENTRY = 54369, SPELL_VOID_SHIFT = 54361, H_SPELL_VOID_SHIFT = 59743, - SPELL_VOID_SHIFTED = 54343, SPELL_ZUMARAT_ADD_2 = 59747, H_SPELL_ZUMARAT_ADD_2 = 59747 @@ -47,14 +46,10 @@ struct TRINITY_DLL_DECL boss_zuramatAI : public ScriptedAI } ScriptedInstance* pInstance; - Unit* Shifted; uint32 SpellVoidShiftTimer; uint32 SpellSummonVoidTimer; uint32 SpellShroudOfDarknessTimer; - uint32 SpellVoidShiftedTimer; - - bool shiftcast; void Reset() { @@ -69,8 +64,6 @@ struct TRINITY_DLL_DECL boss_zuramatAI : public ScriptedAI SpellShroudOfDarknessTimer = 22000; SpellVoidShiftTimer = 15000; SpellSummonVoidTimer = 12000; - - shiftcast = false; } void EnterCombat(Unit* who) @@ -99,24 +92,11 @@ struct TRINITY_DLL_DECL boss_zuramatAI : public ScriptedAI SpellSummonVoidTimer = 20000; } else SpellSummonVoidTimer -=diff; - if(SpellVoidShiftedTimer < diff && shiftcast) - { - Shifted = SelectUnit(SELECT_TARGET_RANDOM, 0); - if (Shifted) - DoCast(Shifted, SPELL_VOID_SHIFTED, false); - shiftcast = false; - } else SpellVoidShiftedTimer -=diff; - if (SpellVoidShiftTimer <= diff) { - Shifted = SelectUnit(SELECT_TARGET_RANDOM, 0); - if (Shifted) - { - DoCast(Shifted, HEROIC(SPELL_VOID_SHIFT, H_SPELL_VOID_SHIFT)); - shiftcast = true; - SpellVoidShiftTimer = 20000; - } - SpellVoidShiftedTimer = 5000; + if (Unit* pUnit = SelectUnit(SELECT_TARGET_RANDOM, 0)) + DoCast(pUnit, HEROIC(SPELL_VOID_SHIFT, H_SPELL_VOID_SHIFT)); + SpellVoidShiftTimer = 20000; } else SpellVoidShiftTimer -=diff; if (SpellShroudOfDarknessTimer <= diff) @@ -154,7 +134,7 @@ struct TRINITY_DLL_DECL boss_zuramatAI : public ScriptedAI DoScriptText(RAND(SAY_SLAY_1,SAY_SLAY_2,SAY_SLAY_3), m_creature); } - + void JustSummoned(Creature* summon) { summon->AI()->AttackStart(m_creature->getVictim()); |