fix(Scripts/Arcatraz): prevent Harbinger Skyriss encounter reset (#25402)

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Andrew 2026-04-09 05:49:25 -03:00 committed by GitHub
parent 805ccc81e7
commit d6b292221e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -385,11 +385,11 @@ public:
void DamageTaken(Unit* attacker, uint32& damage, DamageEffectType, SpellSchoolMask) override
{
if (attacker && attacker->GetCharmerOrOwnerOrOwnGUID().IsPlayer() && damage > 0 && !me->isActiveObject())
if (attacker && attacker->GetCharmerOrOwnerOrOwnGUID().IsPlayer() && damage > 0 && instance->GetBossState(DATA_WARDEN_MELLICHAR) != IN_PROGRESS)
{
me->setActive(true);
me->InterruptNonMeleeSpells(false);
me->SetImmuneToAll(true);
me->SetImmuneToAll(true, true);
events.ScheduleEvent(EVENT_WARDEN_INTRO1, 1500ms);
events.ScheduleEvent(EVENT_WARDEN_CHECK_PLAYERS, 1s);
instance->SetBossState(DATA_WARDEN_MELLICHAR, IN_PROGRESS);