aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;
}
};