private static IEnumerable <Character> ValidBattlecryTargets(BattlecryMinionCard card, GameState gameState, Player player) { var applier = card.EffectApplier as Targetable; return(applier == null? Enumerable.Empty <Character>() : applier.GetValidTargets(gameState, player)); }
public SummonBattlecryTargetless(Player owner, BattlecryMinionCard card, int desiredBoardPosition = 0) : base(owner, card, desiredBoardPosition) { _targetless = (Targetless)card.EffectApplier; }
public SummonBattlecryTargetable(Player owner, BattlecryMinionCard card, Character target, int desiredBoardPosition = 0) : base(owner, card, desiredBoardPosition) { _applier = (Targetable)card.EffectApplier; Target = target; }