mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
- Fix Sonic Burst being castable when it's the only card in your hand.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user