Fix Devastating Dreams Cost

This commit is contained in:
tool4EvEr
2021-03-12 21:12:06 +01:00
parent 578e499460
commit 28be3e3931

View File

@@ -71,7 +71,9 @@ public class CostDiscard extends CostPartWithList {
String type = this.getType();
CardCollectionView handList = payer.canDiscardBy(ability) ? payer.getCardsIn(ZoneType.Hand) : CardCollection.EMPTY;
handList = CardLists.getValidCards(handList, type.split(";"), payer, source, ability);
if (!type.equals("Random")) {
handList = CardLists.getValidCards(handList, type.split(";"), payer, source, ability);
}
return handList.size();
}