Merge branch 'costdreams' into 'master'

Fix Devastating Dreams Cost

See merge request core-developers/forge!4187
This commit is contained in:
Michael Kamensky
2021-03-13 03:39:40 +00:00

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();
}