Removed more debug code

This commit is contained in:
Shauren
2011-10-05 21:27:30 +02:00
parent bb5effa3b1
commit 60efe048a5

View File

@@ -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);