mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
~NPE fix
This commit is contained in:
@@ -634,7 +634,9 @@ public final class GameActionUtil {
|
||||
result.getPayCosts().add(cost);
|
||||
reset = true;
|
||||
}
|
||||
if (result != null) {
|
||||
result.setOptionalKeywordAmount(ki, v);
|
||||
}
|
||||
} else if (o.startsWith("Squad")) {
|
||||
String costStr = o.split(":")[1];
|
||||
final Cost cost = new Cost(costStr, false);
|
||||
@@ -650,9 +652,11 @@ public final class GameActionUtil {
|
||||
result.getPayCosts().add(cost);
|
||||
reset = true;
|
||||
}
|
||||
if (result != null) {
|
||||
result.setOptionalKeywordAmount(ki, v);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (host.isCreature()) {
|
||||
String kw = "As an additional cost to cast creature spells," +
|
||||
|
||||
Reference in New Issue
Block a user