mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 02:38:02 +00:00
Fix Devastating Dreams Cost
This commit is contained in:
@@ -71,7 +71,9 @@ public class CostDiscard extends CostPartWithList {
|
|||||||
String type = this.getType();
|
String type = this.getType();
|
||||||
CardCollectionView handList = payer.canDiscardBy(ability) ? payer.getCardsIn(ZoneType.Hand) : CardCollection.EMPTY;
|
CardCollectionView handList = payer.canDiscardBy(ability) ? payer.getCardsIn(ZoneType.Hand) : CardCollection.EMPTY;
|
||||||
|
|
||||||
|
if (!type.equals("Random")) {
|
||||||
handList = CardLists.getValidCards(handList, type.split(";"), payer, source, ability);
|
handList = CardLists.getValidCards(handList, type.split(";"), payer, source, ability);
|
||||||
|
}
|
||||||
return handList.size();
|
return handList.size();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user