CostExile: fixed exile cost with mana value X

This commit is contained in:
Hans Mackowiak
2021-04-14 17:48:42 +02:00
parent ef895777ca
commit ce34e937d6
2 changed files with 4 additions and 2 deletions

View File

@@ -141,7 +141,9 @@ public class CostExile extends CostPartWithList {
return list.contains(source);
}
list = CardLists.getValidCards(list, type.split(";"), payer, source, ability);
if (!type.contains("X")) {
list = CardLists.getValidCards(list, type.split(";"), payer, source, ability);
}
final Integer amount = this.convertAmount();
if ((amount != null) && (list.size() < amount)) {