mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-13 09:17:59 +00:00
Fix Silver Scrutiny
This commit is contained in:
@@ -188,7 +188,7 @@ public class ForgeScript {
|
||||
} else if (property.startsWith("XCost")) {
|
||||
String comparator = property.substring(5, 7);
|
||||
int y = AbilityUtils.calculateAmount(sa.getHostCard(), property.substring(7), sa);
|
||||
return Expressions.compare(sa.getXManaCostPaid(), comparator, y);
|
||||
return Expressions.compare(sa.getXManaCostPaid() == null ? 0 : sa.getXManaCostPaid(), comparator, y);
|
||||
} else if (property.equals("hasTapCost")) {
|
||||
Cost cost = sa.getPayCosts();
|
||||
return cost != null && cost.hasTapCost();
|
||||
|
||||
Reference in New Issue
Block a user