aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTartalo <none@none>2010-04-07 10:33:58 +0200
committerTartalo <none@none>2010-04-07 10:33:58 +0200
commit599ffd8bb9d046bc99d9b69496208d1102493c6f (patch)
tree2b594ab402d6081e907e664c1d4686306b1af868
parent0ae812b7bdd47e4df3020ea8579951f8bef41b51 (diff)
Boran Tundra, Quest 11648, The Art of Persuassion: Fix pCaster pointer, by microbius51
Cleanup the script --HG-- branch : trunk
-rw-r--r--src/scripts/northrend/borean_tundra.cpp8
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;
}
};