Example #1
0
        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));
        }
Example #2
0
 public SummonBattlecryTargetless(Player owner, BattlecryMinionCard card, int desiredBoardPosition = 0)
     : base(owner, card, desiredBoardPosition)
 {
     _targetless = (Targetless)card.EffectApplier;
 }
Example #3
0
 public SummonBattlecryTargetable(Player owner, BattlecryMinionCard card, Character target, int desiredBoardPosition = 0)
     : base(owner, card, desiredBoardPosition)
 {
     _applier = (Targetable)card.EffectApplier;
     Target   = target;
 }