diff options
| -rw-r--r-- | src/server/scripts/EasternKingdoms/Karazhan/bosses_opera.cpp | 11 | 
1 files changed, 6 insertions, 5 deletions
diff --git a/src/server/scripts/EasternKingdoms/Karazhan/bosses_opera.cpp b/src/server/scripts/EasternKingdoms/Karazhan/bosses_opera.cpp index 0f6913b7ebc..3f236c060d7 100644 --- a/src/server/scripts/EasternKingdoms/Karazhan/bosses_opera.cpp +++ b/src/server/scripts/EasternKingdoms/Karazhan/bosses_opera.cpp @@ -674,6 +674,12 @@ public:          void Initialize()          { +            // Hello, developer from the future! It's me again! +            // This time, you're fixing Karazhan scripts. Awesome. These are a mess of hacks. An amalgamation of hacks, so to speak. Maybe even a Patchwerk thereof. +            // Anyway, I digress. +            // @todo This line below is obviously a hack. Duh. I'm just coming in here to hackfix the encounter to actually be completable. +            // It needs a rewrite. Badly. Please, take good care of it. +            me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_IMMUNE_TO_PC | UNIT_FLAG_NON_ATTACKABLE);              CycloneTimer = 30000;              ChainLightningTimer = 10000;          } @@ -701,8 +707,6 @@ public:          void EnterCombat(Unit* /*who*/) override          {              Talk(SAY_CRONE_AGGRO); -            me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE); -            me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_IMMUNE_TO_PC);          }          void JustDied(Unit* /*killer*/) override @@ -716,9 +720,6 @@ public:              if (!UpdateVictim())                  return; -            if (me->HasFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE)) -                me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE); -              if (CycloneTimer <= diff)              {                  if (Creature* Cyclone = DoSpawnCreature(CREATURE_CYCLONE, float(urand(0, 9)), float(urand(0, 9)), 0, 0, TEMPSUMMON_TIMED_DESPAWN, 15000))  | 
