예제 #1
0
        public void CreateInHand(Entity entity, int turn)
        {
            var ce = new CardEntity(entity)
            {
                Turn = turn, CardMark = CardMark.Created, Created = true
            };

            Hand.Add(ce);
            if (IsLocalPlayer)
            {
                CreatedInHandCardIds.Add(entity.CardId);
            }
            Log("CreateInHand", ce);
        }
예제 #2
0
        public void CreateInHand(Entity entity, int turn)
        {
            var ce = new CardEntity(entity)
            {
                Turn = turn, CardMark = CardMark.Created, Created = true
            };

            if (entity != null &&
                (entity.CardId == HearthDb.CardIds.NonCollectible.Neutral.TheCoin ||
                 entity.CardId == HearthDb.CardIds.NonCollectible.Neutral.GallywixsCoinToken))
            {
                ce.CardMark = CardMark.Coin;
            }
            Hand.Add(ce);
            if (IsLocalPlayer)
            {
                CreatedInHandCardIds.Add(entity.CardId);
            }
            Log("CreateInHand", ce);
        }