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.MINION:
                if (entity.CardId == HearthDb.CardIds.Collectible.Rogue.PogoHopper)
                {
                    PogoHopperPlayedCount++;
                }
                break;

            case (int)CardType.SPELL:
                SpellsPlayedCount++;
                break;
            }
            entity.Info.Hidden        = false;
            entity.Info.Turn          = turn;
            entity.Info.CostReduction = 0;
            CardsPlayedThisTurn.Add(entity.CardId);
            Log(entity);
        }
 public void Reset()
 {
     Name       = "";
     Class      = "";
     Id         = -1;
     GoingFirst = false;
     Fatigue    = 0;
     InDeckPrecitions.Clear();
     SpellsPlayedCount     = 0;
     PogoHopperPlayedCount = 0;
     CardsPlayedThisTurn.Clear();
     LastDrawnCardId = null;
 }
Example #3
0
 public void Reset()
 {
     Name    = "";
     Class   = "";
     Id      = -1;
     Fatigue = 0;
     InDeckPrecitions.Clear();
     SpellsPlayedCount     = 0;
     PogoHopperPlayedCount = 0;
     CardsPlayedThisTurn.Clear();
     LastDrawnCardId      = null;
     LibramReductionCount = 0;
 }
 public void OnTurnStart()
 {
     CardsPlayedThisTurn.Clear();
 }