mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-10 03:59:05 +01:00
Core/Scripts: fixed npc immunity flags during Harbinger Skyriss encounter
- Added missing _Reset
- Properly register Skyriss summons in SummonList
Closes #21154
Who ordered up an extra large can of whoop-ass?
(cherry picked from commit f8b148c334)
This commit is contained in:
@@ -107,7 +107,7 @@ class npc_millhouse_manastorm : public CreatureScript
|
||||
if (instance->GetData(DATA_WARDEN_2) == DONE)
|
||||
{
|
||||
Init = true;
|
||||
me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_IMMUNE_TO_NPC);
|
||||
me->SetImmuneToNPC(false);
|
||||
}
|
||||
|
||||
if (instance->GetBossState(DATA_HARBINGER_SKYRISS) == DONE)
|
||||
@@ -180,7 +180,7 @@ class npc_millhouse_manastorm : public CreatureScript
|
||||
case 7:
|
||||
instance->SetData(DATA_WARDEN_2, DONE);
|
||||
Init = true;
|
||||
me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_IMMUNE_TO_NPC);
|
||||
me->SetImmuneToNPC(false);
|
||||
break;
|
||||
}
|
||||
++Phase;
|
||||
|
||||
@@ -98,10 +98,9 @@ class boss_harbinger_skyriss : public CreatureScript
|
||||
|
||||
void Reset() override
|
||||
{
|
||||
if (!Intro)
|
||||
me->SetImmuneToPC(true);
|
||||
_Reset();
|
||||
|
||||
me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_IMMUNE_TO_PC);
|
||||
me->SetImmuneToAll(!Intro);
|
||||
Initialize();
|
||||
}
|
||||
|
||||
@@ -134,7 +133,7 @@ class boss_harbinger_skyriss : public CreatureScript
|
||||
summon->AI()->AttackStart(target);
|
||||
|
||||
summons.Summon(summon);
|
||||
summon->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_IMMUNE_TO_PC | UNIT_FLAG_IMMUNE_TO_NPC);
|
||||
summon->SetImmuneToAll(false);
|
||||
}
|
||||
|
||||
void KilledUnit(Unit* victim) override
|
||||
@@ -186,7 +185,7 @@ class boss_harbinger_skyriss : public CreatureScript
|
||||
Intro_Timer = 3000;
|
||||
break;
|
||||
case 3:
|
||||
me->SetImmuneToPC(false);
|
||||
me->SetImmuneToAll(false);
|
||||
Intro = true;
|
||||
break;
|
||||
}
|
||||
@@ -290,7 +289,7 @@ class boss_harbinger_skyriss_illusion : public CreatureScript
|
||||
|
||||
void Reset() override
|
||||
{
|
||||
me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_IMMUNE_TO_PC);
|
||||
me->SetImmuneToPC(false);
|
||||
me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE | UNIT_FLAG_NON_ATTACKABLE);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user