Removed more debug code
This commit is contained in:
@@ -503,12 +503,12 @@ class boss_the_lich_king : public CreatureScript
|
|||||||
|
|
||||||
void EnterCombat(Unit* target)
|
void EnterCombat(Unit* target)
|
||||||
{
|
{
|
||||||
//if (!instance->CheckRequiredBosses(DATA_THE_LICH_KING, target->ToPlayer()))
|
if (!instance->CheckRequiredBosses(DATA_THE_LICH_KING, target->ToPlayer()))
|
||||||
//{
|
{
|
||||||
// EnterEvadeMode();
|
EnterEvadeMode();
|
||||||
// instance->DoCastSpellOnPlayers(LIGHT_S_HAMMER_TELEPORT);
|
instance->DoCastSpellOnPlayers(LIGHT_S_HAMMER_TELEPORT);
|
||||||
// return;
|
return;
|
||||||
//}
|
}
|
||||||
|
|
||||||
me->setActive(true);
|
me->setActive(true);
|
||||||
DoZoneInCombat();
|
DoZoneInCombat();
|
||||||
@@ -634,14 +634,14 @@ class boss_the_lich_king : public CreatureScript
|
|||||||
|
|
||||||
void DamageTaken(Unit* /*attacker*/, uint32& /*damage*/)
|
void DamageTaken(Unit* /*attacker*/, uint32& /*damage*/)
|
||||||
{
|
{
|
||||||
//if (events.GetPhaseMask() & PHASE_MASK_ONE && !HealthAbovePct(70))
|
if (events.GetPhaseMask() & PHASE_MASK_ONE && !HealthAbovePct(70))
|
||||||
//{
|
{
|
||||||
// events.SetPhase(PHASE_TRANSITION);
|
events.SetPhase(PHASE_TRANSITION);
|
||||||
// me->GetMotionMaster()->MovePoint(POINT_CENTER_1, CenterPosition);
|
me->GetMotionMaster()->MovePoint(POINT_CENTER_1, CenterPosition);
|
||||||
// return;
|
return;
|
||||||
//}
|
}
|
||||||
|
|
||||||
if (events.GetPhaseMask() & (PHASE_MASK_ONE | PHASE_MASK_TWO) && !HealthAbovePct(40))
|
if (events.GetPhaseMask() & PHASE_MASK_TWO && !HealthAbovePct(40))
|
||||||
{
|
{
|
||||||
events.SetPhase(PHASE_TRANSITION);
|
events.SetPhase(PHASE_TRANSITION);
|
||||||
me->GetMotionMaster()->MovePoint(POINT_CENTER_2, CenterPosition);
|
me->GetMotionMaster()->MovePoint(POINT_CENTER_2, CenterPosition);
|
||||||
|
|||||||
Reference in New Issue
Block a user