Scripts/Naxxramas: Fix Kel'thuzad evade mode when he dies (#24763)

This commit is contained in:
Gildor
2020-06-07 12:55:38 +02:00
committed by Ovahlord
parent ae5a3ca7e2
commit 9b59fba528

View File

@@ -232,8 +232,12 @@ public:
_abominationDeathCount = 0;
_phaseThree = false;
}
void EnterEvadeMode(EvadeReason /*why*/) override
{
if (!me->IsAlive())
return;
for (NAXData64 portalData : portalList)
if (GameObject* portal = ObjectAccessor::GetGameObject(*me, instance->GetGuidData(portalData)))
portal->SetGoState(GO_STATE_READY);