/// <summary> /// Action /// </summary> /// <param name="living"></param> public override void Execute(GameLiving living) { if (CheckPreconditions(living, DEAD | SITTING | MEZZED | STUNNED)) { return; } if (living is GamePlayer player) { OverwhelmEffect overwhelm = player.EffectList.GetOfType <OverwhelmEffect>(); overwhelm?.Cancel(false); new OverwhelmEffect().Start(player); } DisableSkill(living); }
/// <summary> /// Action /// </summary> /// <param name="living"></param> public override void Execute(GameLiving living) { if (CheckPreconditions(living, DEAD | SITTING | MEZZED | STUNNED)) { return; } GamePlayer player = living as GamePlayer; if (player != null) { OverwhelmEffect Overwhelm = (OverwhelmEffect)player.EffectList.GetOfType <OverwhelmEffect>(); if (Overwhelm != null) { Overwhelm.Cancel(false); } new OverwhelmEffect().Start(player); } DisableSkill(living); }