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:
1 parent
f17caff7a0
commit
bfaff7106b
1 file changed
+6
+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);
|
||||
|
||||
Reference in new issue
Block a user