fix(Scripts/SunwellPlateau): Ensure Kil'jaeden encounter resets correctly on evade (#22006)
This commit is contained in:
parent
69a16b0b59
commit
8c727c5485
1 changed files with 5 additions and 1 deletions
|
|
@ -471,8 +471,12 @@ struct boss_kiljaeden : public BossAI
|
|||
{
|
||||
if (me->GetReactState() == REACT_PASSIVE)
|
||||
return;
|
||||
|
||||
ScriptedAI::EnterEvadeMode(why);
|
||||
me->DespawnOrUnsummon();
|
||||
if (InstanceScript* instance = me->GetInstanceScript())
|
||||
if (Creature* controller = instance->GetCreature(DATA_KJ_CONTROLLER))
|
||||
if (controller->IsAIEnabled)
|
||||
controller->AI()->Reset();
|
||||
}
|
||||
|
||||
void AttackStart(Unit* who) override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue