CostExile support X as amount to exile

This commit is contained in:
Northmoc
2021-09-24 17:57:27 -04:00
parent a8db6f9370
commit 50a713365c

View File

@@ -112,6 +112,10 @@ public class CostExile extends CostPartWithList {
return String.format("Exile %s from the same %s", Cost.convertAmountTypeToWords(i, this.getAmount(), desc), origin);
}
if (this.getAmount().equals("X")) {
return String.format ("Exile any number of %s from your %s", desc, origin);
}
return String.format("Exile %s from your %s", Cost.convertAmountTypeToWords(i, this.getAmount(), desc), origin);
}