fix(Scripts/Arcatraz): prevent Harbinger Skyriss encounter reset (#25402)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
805ccc81e7
commit
d6b292221e
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue