- CostDiscard should only decrement Costs when the card that's in your hand can be used to pay the typing. (Fix Magmatic Insight)

This commit is contained in:
Sol
2015-11-17 01:45:27 +00:00
parent 779138ac97
commit 7978fbbc15

View File

@@ -137,8 +137,10 @@ public class CostDiscard extends CostPartWithList {
int adjustment = 0; int adjustment = 0;
if (source.isInZone(ZoneType.Hand) && activator.equals(source.getOwner())) { if (source.isInZone(ZoneType.Hand) && activator.equals(source.getOwner())) {
// If this card is in my hand, I can't use it to pay for it's own cost // If this card is in my hand, I can't use it to pay for it's own cost
if (handList.contains(source)) {
adjustment = 1; adjustment = 1;
} }
}
if ((amount != null) && (amount > handList.size() - adjustment)) { if ((amount != null) && (amount > handList.size() - adjustment)) {
// not enough cards in hand to pay // not enough cards in hand to pay