Exemplo n.º 1
0
 public override CanPlayCardQueryResult CanPlayInner(AbstractBattleUnit target)
 {
     if (BattleRules.IsEnemyEligibleForTaunting(target, this.Owner))
     {
         return(CanPlayCardQueryResult.CanPlay());
     }
     else
     {
         return(CanPlayCardQueryResult.CannotPlay("Taunted units must be attacking exactly one" +
                                                  " target who is not the taunting character."));
     }
 }
    public CanPlayCardQueryResult CanPlay(AbstractBattleUnit target)
    {
        if (Unplayable)
        {
            return(CanPlayCardQueryResult.CannotPlay("This card is unplayable."));
        }

        if (!CanPlayInner(target).Playable)
        {
            return(CanPlayInner(target));
        }

        if (CanAfford())
        {
            return(CanPlayCardQueryResult.CanPlay());
        }
        else
        {
            return(CanPlayCardQueryResult.CannotPlay("I don't have the energy for this."));
        }
    }