- Fix Sonic Burst being castable when it's the only card in your hand.

This commit is contained in:
Sol
2015-10-14 00:00:06 +00:00
parent e80d30ba5c
commit e072e2e6df

View File

@@ -134,7 +134,13 @@ public class CostDiscard extends CostPartWithList {
}
return false;
}
if ((amount != null) && (amount > handList.size())) {
int adjustment = 0;
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
adjustment = 1;
}
if ((amount != null) && (amount > handList.size() - adjustment)) {
// not enough cards in hand to pay
return false;
}