mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +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;
|
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
|
// not enough cards in hand to pay
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user