fix(Scripts/VioletHold): Add missing UNIT_FLAG_IMMUNE_TO_PC to ereke… (#25471)
This commit is contained in:
parent
87065bf98e
commit
66ede70908
2 changed files with 6 additions and 4 deletions
|
|
@ -0,0 +1,2 @@
|
|||
-- Erekem Guards: add UNIT_FLAG_IMMUNE_TO_PC (0x100)
|
||||
UPDATE `creature_template` SET `unit_flags` = `unit_flags` | 0x100 WHERE `entry` IN (29395, 31513);
|
||||
|
|
@ -296,14 +296,14 @@ public:
|
|||
{
|
||||
guard1->RemoveUnitMovementFlag(MOVEMENTFLAG_WALKING);
|
||||
guard1->RemoveUnitFlag(UNIT_FLAG_NON_ATTACKABLE);
|
||||
guard1->SetImmuneToNPC(false);
|
||||
guard1->SetImmuneToAll(false);
|
||||
guard1->GetMotionMaster()->MovePoint(0, BossStartMove21);
|
||||
}
|
||||
if (Creature* guard2 = instance->GetCreature(_erekemGuardGuid[1]))
|
||||
{
|
||||
guard2->RemoveUnitMovementFlag(MOVEMENTFLAG_WALKING);
|
||||
guard2->RemoveUnitFlag(UNIT_FLAG_NON_ATTACKABLE);
|
||||
guard2->SetImmuneToNPC(false);
|
||||
guard2->SetImmuneToAll(false);
|
||||
guard2->GetMotionMaster()->MovePoint(0, BossStartMove22);
|
||||
}
|
||||
break;
|
||||
|
|
@ -545,14 +545,14 @@ public:
|
|||
if (Creature* guard1 = instance->GetCreature(_erekemGuardGuid[0]))
|
||||
{
|
||||
guard1->SetUnitFlag(UNIT_FLAG_NON_ATTACKABLE);
|
||||
guard1->SetImmuneToNPC(true);
|
||||
guard1->SetImmuneToAll(true);
|
||||
guard1->DespawnOrUnsummon(0ms, 3s);
|
||||
}
|
||||
_erekemGuardGuid[0].Clear();
|
||||
if (Creature* guard2 = instance->GetCreature(_erekemGuardGuid[1]))
|
||||
{
|
||||
guard2->SetUnitFlag(UNIT_FLAG_NON_ATTACKABLE);
|
||||
guard2->SetImmuneToNPC(true);
|
||||
guard2->SetImmuneToAll(true);
|
||||
guard2->DespawnOrUnsummon(0ms, 3s);
|
||||
}
|
||||
_erekemGuardGuid[1].Clear();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue