- 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

1
.gitattributes vendored
View File

@@ -9551,6 +9551,7 @@ res/cardsfolder/s/simic_guildgate.txt -text
res/cardsfolder/s/simic_guildmage.txt -text
res/cardsfolder/s/simic_initiate.txt -text
res/cardsfolder/s/simic_keyrune.txt -text
res/cardsfolder/s/simic_manipulator.txt -text
res/cardsfolder/s/simic_ragworm.txt svneol=native#text/plain
res/cardsfolder/s/simic_signet.txt svneol=native#text/plain
res/cardsfolder/s/simic_sky_swallower.txt svneol=native#text/plain

View File

@@ -0,0 +1,11 @@
Name:Simic Manipulator
ManaCost:1 U U
Types:Creature Merfolk
PT:0/1
K:Evolve
A:AB$ GainControl | Announce$ X | Cost$ XCantBe0 T SubCounter<X/P1P1/CARDNAME> | ValidTgts$ Creature.powerLEX | TgtPrompt$ Select target with power less than or equal to the number of +1/+1 counters removed this way | SpellDescription$ Gain control of target creature with power less than or equal to the number of +1/+1 counters removed this way.
SVar:X:Count$xPaid
SVar:RemAIDeck:True
SVar:Picture:http://www.wizards.com/global/images/magic/general/simic_manipulator.jpg
Oracle:Evolve (Whenever a creature enters the battlefield under your control, if that creature has greater power or toughness than this creature, put a +1/+1 counter on this creature.)\n{T}, Remove one or more +1/+1 counters from Simic Manipulator: Gain control of target creature with power less than or equal to the number of +1/+1 counters removed this way.
SetInfo:GTC Rare

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