diff options
author | Tartalo <none@none> | 2010-04-07 10:33:58 +0200 |
---|---|---|
committer | Tartalo <none@none> | 2010-04-07 10:33:58 +0200 |
commit | 599ffd8bb9d046bc99d9b69496208d1102493c6f (patch) | |
tree | 2b594ab402d6081e907e664c1d4686306b1af868 /src | |
parent | 0ae812b7bdd47e4df3020ea8579951f8bef41b51 (diff) |
Boran Tundra, Quest 11648, The Art of Persuassion: Fix pCaster pointer, by microbius51
Cleanup the script
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/scripts/northrend/borean_tundra.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/scripts/northrend/borean_tundra.cpp b/src/scripts/northrend/borean_tundra.cpp index b4cdc906f57..5117c69f3c9 100644 --- a/src/scripts/northrend/borean_tundra.cpp +++ b/src/scripts/northrend/borean_tundra.cpp @@ -1715,6 +1715,7 @@ struct npc_imprisoned_beryl_sorcererAI : public ScriptedAI { uiStep = 1; uiPhase = 0; + pCaster = NULL; } void EnterCombat(Unit* pWho) @@ -1722,12 +1723,12 @@ struct npc_imprisoned_beryl_sorcererAI : public ScriptedAI return; } - void SpellHit(Unit* pCaster, const SpellEntry* pSpell) + void SpellHit(Unit* pUnit, const SpellEntry* pSpell) { if (pSpell->Id == SPELL_NEURAL_NEEDLE && pCaster->GetTypeId() == TYPEID_PLAYER) { ++uiPhase; - pCaster = CAST_PLR(pCaster); + pCaster = CAST_PLR(pUnit); } } @@ -1804,9 +1805,6 @@ struct npc_imprisoned_beryl_sorcererAI : public ScriptedAI } break; } - - if (!UpdateVictim()) - return; } }; |