Exemple #1
0
 public TargetCreatureChoice(Permanent creature) :
     base($"Target {creature.Name}")
 {
     if (!creature.CardTypes.Contains(CardType.Creature))
     {
         throw new ArgumentException($"{creature.Name} is not a creature.");
     }
     Creature = creature;
 }
Exemple #2
0
 public TapBasicLandChoice(Permanent p)
     : base(string.Format("Tap {0}", p))
 {
     this.Land = p;
 }
Exemple #3
0
 private bool CanAttack(Permanent p)
 {
     return(p.Controller == _gs.Active &&
            p.CardTypes.Contains(CardType.Creature) &&
            ThisTurnStartingState().Battlefield.Objects.Contains(p));
 }