Implement BattleEffects, add Thunderstorm

This commit is contained in:
henriquenakashima 2020-09-19 16:58:14 -04:00
parent fc427bd276
commit 00448fe919
20 changed files with 215 additions and 18 deletions

View file

@ -70,15 +70,18 @@ public class HeroDeck
this.handPile.Add(drawnCard);
}
public void DiscardPlayedCard(BaseCard card) {
public void RemoveCardFromHand(BaseCard card) {
if (!this.handPile.Contains(card)) {
throw new InvalidOperationException("Cannot discard card " + card.GetDisplayName()
+ " because not in hand.");
}
this.discardPile.Insert(0, card);
this.handPile.Remove(card);
TriggerHandPileChanged();
}
public void MoveCardToDiscard(BaseCard card) {
this.discardPile.Insert(0, card);
TriggerDiscardPileChanged();
}