Exemple #1
0
        public void Play(Entity entity, int turn)
        {
            if (!IsLocalPlayer)
            {
                UpdateKnownEntitesInDeck(entity.CardId, entity.Info.Turn);
            }
            switch (entity.GetTag(GameTag.CARDTYPE))
            {
            case (int)CardType.TOKEN:
                entity.Info.Created = true;
                break;

            case (int)CardType.SPELL:
                SpellsPlayedCount++;
                if (Database.GetCardFromName(entity.Card.Name).Cost >= 5)
                {
                    BigSpellsPlayedCount++;
                }
                break;
            }
            entity.Info.Hidden        = false;
            entity.Info.Turn          = turn;
            entity.Info.CostReduction = 0;
            Log(entity);
        }
Exemple #2
0
 public static Card GetCardFromName(string name, bool localized = false)
 {
     return(Database.GetCardFromName(name, localized));
 }