示例#1
0
    public void PlayACreatureFromHand(CardLogic playedCard, int tablePos)
    {
        ManaLeft -= playedCard.CurrentManaCost;
        CreatureLogic newCreature = new CreatureLogic(this, playedCard.CardAsset);

        table.CreaturesOnTable.Insert(tablePos, newCreature);
        hand.CardsInHand.Remove(playedCard);
        new PlayACreatureCommand(playedCard, this, tablePos, newCreature.ID).AddToQueue();

        newCreature.PlayInGame();
        HighlightPlayableCards();
    }