mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 01:08:35 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user