Scripts/BRC: update Raz' home position upon engaging enemies to avoid him climbing back to his pre-leap positions if the escort did not start yet

This commit is contained in:
Ovahlord committed 2022-12-04 09:23:15 +01:00
1 parent f17caff7a0
commit bfaff7106b
1 file changed
+6
@@ -590,6 +590,12 @@ struct npc_raz_the_crazed : public EscortAI
DoCastSelf(SPELL_AGGRO_NEARBY_TARGETS, true);
}
void JustEngagedWith(Unit* who) override
{
EscortAI::JustEngagedWith(who);
me->SetHomePosition(me->GetPosition());
}
void JustAppeared() override
{
SetRun(true);