Skip to content

Commit

Permalink
Script/ICC: Fix phase check and warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Gacko committed Jan 31, 2013
1 parent 8e78063 commit f5264e3
Showing 1 changed file with 1 addition and 3 deletions.
Expand Up @@ -870,7 +870,7 @@ class boss_the_lich_king : public CreatureScript
events.Update(diff);

// during Remorseless Winter phases The Lich King is channeling a spell, but we must continue casting other spells
if ((me->HasUnitState(UNIT_STATE_CASTING) && !events.IsInPhase(PHASE_TRANSITION)) || events.IsInPhase(PHASE_OUTRO) || events.IsInPhase(PHASE_FROSTMOURNE))
if (me->HasUnitState(UNIT_STATE_CASTING) && !(events.IsInPhase(PHASE_TRANSITION) || events.IsInPhase(PHASE_OUTRO) || events.IsInPhase(PHASE_FROSTMOURNE)))
return;

while (uint32 eventId = events.ExecuteEvent())
Expand Down Expand Up @@ -2837,8 +2837,6 @@ class spell_the_lich_king_vile_spirit_damage_target_search : public SpellScriptL
{
OnObjectAreaTargetSelect += SpellObjectAreaTargetSelectFn(spell_the_lich_king_vile_spirit_damage_target_search_SpellScript::CheckTargetCount, EFFECT_0, TARGET_UNIT_SRC_AREA_ENEMY);
}

Unit* _target;
};

SpellScript* GetSpellScript() const
Expand Down

0 comments on commit f5264e3

Please sign in to comment.