From 28be3e3931829a3db8e28cdef239871a30b3341e Mon Sep 17 00:00:00 2001 From: tool4EvEr Date: Fri, 12 Mar 2021 21:12:06 +0100 Subject: [PATCH] Fix Devastating Dreams Cost --- forge-game/src/main/java/forge/game/cost/CostDiscard.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/forge-game/src/main/java/forge/game/cost/CostDiscard.java b/forge-game/src/main/java/forge/game/cost/CostDiscard.java index 00b52275f6e..1fd841827f8 100644 --- a/forge-game/src/main/java/forge/game/cost/CostDiscard.java +++ b/forge-game/src/main/java/forge/game/cost/CostDiscard.java @@ -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(); }