private void DiscardCards()
 {
     foreach (var card in _discardingCards)
     {
         card.HideHighlight();
         EventMoveDeckCard.MoveCardToShareDeck(card.Entity);
     }
 }
Exemple #2
0
    public void DiscardCard(CardObject card)
    {
        if (!CanUseCard())
        {
            return;
        }

        EventMoveDeckCard.MoveCardToShareDeck(card.Entity);
        CloseAction();
    }
        public void MoveToShareDeck()
        {
            var system = new EventMoveCardSystem(_contexts);

            var p1   = CreatePlayerEntity(1);
            var card = _contexts.card.CreateEntity();

            card.AddDeckCard(DeckCard.Move);
            card.AddOwner(p1);

            EventMoveDeckCard.MoveCardToShareDeck(card);

            system.Execute();

            Assert.IsFalse(card.hasOwner);
        }