fix(Scripts/Naxxramas): dying to Poison Cloud OOC doesn't fail immortal (#27161)

This commit is contained in:
sogladev 2026-08-15 05:16:33 +02:00 committed by GitHub
parent 60e05dda32
commit 9035b9a587
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -189,7 +189,7 @@ public:
void KilledUnit(Unit* who) override
{
if (who->IsPlayer())
if (who->IsPlayer() && me->GetInstanceScript()->GetBossState(BOSS_GROBBULUS) == IN_PROGRESS)
me->GetInstanceScript()->StorePersistentData(PERSISTENT_DATA_IMMORTAL_FAIL, 1);
}