Implement BattleEffects, add Thunderstorm
This commit is contained in:
parent
fc427bd276
commit
00448fe919
20 changed files with 215 additions and 18 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue