mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 09:44:45 +01:00
Removed more debug code
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user