From 60efe048a51e01eac87bafca05068567b25e85f3 Mon Sep 17 00:00:00 2001 From: Shauren Date: Wed, 5 Oct 2011 21:27:30 +0200 Subject: Removed more debug code --- .../IcecrownCitadel/boss_the_lich_king.cpp | 26 +++++++++++----------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'src') 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); -- cgit v1.2.3