DB/Creature: Remove UNIT_FLAG_STUNNED in more cases

Ref #25764

(cherry picked from commit 7b79adf5b1)
This commit is contained in:
offl
2021-01-15 01:53:43 +02:00
committed by Shauren
parent 09a4bb4837
commit 1d09bd112a
3 changed files with 64 additions and 2 deletions

View File

@@ -197,6 +197,7 @@ struct npc_headless_horseman_head : public PassiveAI
void HandleInitialSetup()
{
DoCastSelf(SPELL_HEADLESS_HORSEMAN_C_HEAD_STUN);
me->AddUnitFlag(UNIT_FLAG_NOT_SELECTABLE);
_phase = PHASE_1;
_events.SetPhase(PHASE_1);
}
@@ -206,7 +207,6 @@ struct npc_headless_horseman_head : public PassiveAI
_events.Reset();
me->GetMotionMaster()->Clear();
HandleInitialSetup();
me->AddUnitFlag(UNIT_FLAG_NOT_SELECTABLE);
PassiveAI::JustReachedHome();
}

View File

@@ -379,7 +379,6 @@ struct boss_thaddius : public BossAI
me->CastSpell(me, SPELL_THADDIUS_SPARK_VISUAL, true);
ballLightningUnlocked = false;
me->RemoveAura(SPELL_THADDIUS_INACTIVE_VISUAL);
me->RemoveUnitFlag(UNIT_FLAG_STUNNED);
me->SetImmuneToPC(false);
DoZoneInCombat();