fix(Scripts/Naxxramas): make sure mobs attack live side EVEN if nobody was on dead side for the whole fight (#24344)
This commit is contained in:
parent
e12f739dc9
commit
1f270d0fd1
1 changed files with 13 additions and 0 deletions
|
|
@ -464,6 +464,19 @@ public:
|
|||
go->SetGoState(GO_STATE_ACTIVE);
|
||||
|
||||
gateOpened = true;
|
||||
summons.DoForAllSummons([&](WorldObject* summon)
|
||||
{
|
||||
if (Creature* gothikMinion = summon->ToCreature())
|
||||
if (gothikMinion->IsAlive())
|
||||
{
|
||||
if (Unit* target = SelectTarget(SelectTargetMethod::MinDistance, 0, 200.0f))
|
||||
{
|
||||
gothikMinion->AI()->AttackStart(target);
|
||||
gothikMinion->SetReactState(REACT_AGGRESSIVE);
|
||||
gothikMinion->SetInCombatWithZone();
|
||||
}
|
||||
}
|
||||
});
|
||||
Talk(EMOTE_GATE_OPENED);
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue