/// <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) { ShadowShroudEffect shadowShroud = player.EffectList.GetOfType <ShadowShroudEffect>(); shadowShroud?.Cancel(false); new ShadowShroudEffect().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) { ShadowShroudEffect ShadowShroud = (ShadowShroudEffect)player.EffectList.GetOfType <ShadowShroudEffect>(); if (ShadowShroud != null) { ShadowShroud.Cancel(false); } new ShadowShroudEffect().Start(player); } DisableSkill(living); }