aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/server/scripts/Northrend/IcecrownCitadel/boss_the_lich_king.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/server/scripts/Northrend/IcecrownCitadel/boss_the_lich_king.cpp b/src/server/scripts/Northrend/IcecrownCitadel/boss_the_lich_king.cpp
index 2a294a76fff..10cada636da 100644
--- a/src/server/scripts/Northrend/IcecrownCitadel/boss_the_lich_king.cpp
+++ b/src/server/scripts/Northrend/IcecrownCitadel/boss_the_lich_king.cpp
@@ -503,12 +503,12 @@ class boss_the_lich_king : public CreatureScript
void EnterCombat(Unit* target)
{
- //if (!instance->CheckRequiredBosses(DATA_THE_LICH_KING, target->ToPlayer()))
- //{
- // EnterEvadeMode();
- // instance->DoCastSpellOnPlayers(LIGHT_S_HAMMER_TELEPORT);
- // return;
- //}
+ if (!instance->CheckRequiredBosses(DATA_THE_LICH_KING, target->ToPlayer()))
+ {
+ EnterEvadeMode();
+ instance->DoCastSpellOnPlayers(LIGHT_S_HAMMER_TELEPORT);
+ return;
+ }
me->setActive(true);
DoZoneInCombat();
@@ -634,14 +634,14 @@ class boss_the_lich_king : public CreatureScript
void DamageTaken(Unit* /*attacker*/, uint32& /*damage*/)
{
- //if (events.GetPhaseMask() & PHASE_MASK_ONE && !HealthAbovePct(70))
- //{
- // events.SetPhase(PHASE_TRANSITION);
- // me->GetMotionMaster()->MovePoint(POINT_CENTER_1, CenterPosition);
- // return;
- //}
+ if (events.GetPhaseMask() & PHASE_MASK_ONE && !HealthAbovePct(70))
+ {
+ events.SetPhase(PHASE_TRANSITION);
+ me->GetMotionMaster()->MovePoint(POINT_CENTER_1, CenterPosition);
+ return;
+ }
- if (events.GetPhaseMask() & (PHASE_MASK_ONE | PHASE_MASK_TWO) && !HealthAbovePct(40))
+ if (events.GetPhaseMask() & PHASE_MASK_TWO && !HealthAbovePct(40))
{
events.SetPhase(PHASE_TRANSITION);
me->GetMotionMaster()->MovePoint(POINT_CENTER_2, CenterPosition);