Fix Silver Scrutiny

This commit is contained in:
tool4EvEr
2023-02-26 10:17:47 +01:00
parent 89f4d8ff67
commit 08ae04ab8b

View File

@@ -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();