diff options
| author | offl <offl@users.noreply.github.com> | 2021-06-10 19:15:35 +0300 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2022-03-11 01:41:20 +0100 |
| commit | 4bdf5261e6e950aff19a543a7cc103163dd44ac5 (patch) | |
| tree | 90cb616127b474cd9742086b91b7427e4516e8a4 /src/server/scripts/Northrend | |
| parent | 0fc126642c90b05bb8e5326fc64c9605cfe8c728 (diff) | |
Scripts/Misc: Remove few more evil flags
Ref #25764
(cherry picked from commit 180f495c7037dc3be61a33dee5745833fd993d4c)
Diffstat (limited to 'src/server/scripts/Northrend')
| -rw-r--r-- | src/server/scripts/Northrend/Nexus/Nexus/boss_keristrasza.cpp | 8 | ||||
| -rw-r--r-- | src/server/scripts/Northrend/Ulduar/HallsOfLightning/boss_ionar.cpp | 16 |
2 files changed, 9 insertions, 15 deletions
diff --git a/src/server/scripts/Northrend/Nexus/Nexus/boss_keristrasza.cpp b/src/server/scripts/Northrend/Nexus/Nexus/boss_keristrasza.cpp index ee03e9bebca..1c5e8e8d981 100644 --- a/src/server/scripts/Northrend/Nexus/Nexus/boss_keristrasza.cpp +++ b/src/server/scripts/Northrend/Nexus/Nexus/boss_keristrasza.cpp @@ -80,8 +80,6 @@ struct boss_keristrasza : public BossAI Initialize(); _intenseColdList.clear(); - me->RemoveUnitFlag(UNIT_FLAG_STUNNED); - RemovePrison(CheckContainmentSpheres()); _Reset(); } @@ -132,15 +130,13 @@ struct boss_keristrasza : public BossAI { if (remove) { - me->SetImmuneToPC(false); - me->RemoveUnitFlag(UNIT_FLAG_NON_ATTACKABLE); + me->SetImmuneToAll(false); if (me->HasAura(SPELL_FROZEN_PRISON)) me->RemoveAurasDueToSpell(SPELL_FROZEN_PRISON); } else { - me->SetImmuneToPC(true); - me->AddUnitFlag(UNIT_FLAG_NON_ATTACKABLE); + me->SetImmuneToAll(true); DoCast(me, SPELL_FROZEN_PRISON, false); } } diff --git a/src/server/scripts/Northrend/Ulduar/HallsOfLightning/boss_ionar.cpp b/src/server/scripts/Northrend/Ulduar/HallsOfLightning/boss_ionar.cpp index 7731b2ec600..d0fed8e2e5a 100644 --- a/src/server/scripts/Northrend/Ulduar/HallsOfLightning/boss_ionar.cpp +++ b/src/server/scripts/Northrend/Ulduar/HallsOfLightning/boss_ionar.cpp @@ -37,9 +37,11 @@ enum Spells SPELL_SPARK_DESPAWN = 52776, // Spark of Ionar - SPELL_SPARK_VISUAL_TRIGGER = 52667 + SPELL_RANDOM_LIGHTNING_VISUAL = 52663 }; +#define SPELL_SPARK_VISUAL_TRIGGER DUNGEON_MODE<uint32>(52667,59833) + enum Yells { SAY_AGGRO = 0, @@ -168,6 +170,7 @@ struct boss_ionar : public ScriptedAI { if (pSpark->IsAlive()) { + pSpark->SetReactState(REACT_PASSIVE); pSpark->SetSpeedRate(MOVE_RUN, 2.0f); pSpark->GetMotionMaster()->Clear(); pSpark->GetMotionMaster()->MovePoint(DATA_POINT_CALLBACK, pos); @@ -190,8 +193,6 @@ struct boss_ionar : public ScriptedAI { lSparkList.Summon(summoned); - summoned->CastSpell(summoned, SPELL_SPARK_VISUAL_TRIGGER, true); - if (Unit* target = SelectTarget(SelectTargetMethod::Random, 0)) { summoned->SetInCombatWith(target); @@ -307,7 +308,8 @@ struct npc_spark_of_ionar : public ScriptedAI void Reset() override { Initialize(); - me->SetReactState(REACT_PASSIVE); + DoCastSelf(SPELL_SPARK_VISUAL_TRIGGER); + DoCastSelf(SPELL_RANDOM_LIGHTNING_VISUAL); } void MovementInform(uint32 uiType, uint32 uiPointId) override @@ -319,11 +321,6 @@ struct npc_spark_of_ionar : public ScriptedAI me->DespawnOrUnsummon(); } - void DamageTaken(Unit* /*pDoneBy*/, uint32 &uiDamage) override - { - uiDamage = 0; - } - void UpdateAI(uint32 uiDiff) override { // Despawn if the encounter is not running @@ -343,6 +340,7 @@ struct npc_spark_of_ionar : public ScriptedAI { Position pos = ionar->GetPosition(); + me->SetReactState(REACT_PASSIVE); me->SetSpeedRate(MOVE_RUN, 2.0f); me->GetMotionMaster()->Clear(); me->GetMotionMaster()->MovePoint(DATA_POINT_CALLBACK, pos); |
