void _OnCardUsed(CardUsed e) { BaseCard useCard = null; foreach (BaseCard card in e.player.cards) { if (card.type == e.type) { useCard = card; } } if (useCard != null) { CardController.UseCard(e.player, useCard); } _EventBus.Publish <TurnPhaseChanged>(new TurnPhaseChanged(null, TurnPhase.AttackPhase)); }
void _OnCardUsed(CardUsed e) { LogLine(e.player.player, "CARD USED: " + e.type); currGameData.cardsUsed[e.player.player][e.type] = currGameData.cardsUsed[e.player.player][e.type] + 1; }