- Fix NPE related to X Can't be 0 and Announce

- Added Simic Manipulator
This commit is contained in:
Sol
2013-03-12 03:20:32 +00:00
parent 845371b4e8
commit 3d073c92a8
3 changed files with 14 additions and 1 deletions

View File

@@ -1701,7 +1701,8 @@ public abstract class SpellAbility implements ISpellAbility {
String value = this.getActivatingPlayer().getController().announceRequirements(this, aVar);
if (value == null || !StringUtils.isNumeric(value)) {
return false;
} else if (this.getPayCosts().getCostMana().isxCantBe0() && Integer.parseInt(value) == 0) {
} else if (this.getPayCosts().getCostMana() != null && this.getPayCosts().getCostMana().isxCantBe0()
&& Integer.parseInt(value) == 0) {
return false;
}
this.setSVar(aVar, "Number$" + value);