mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- Fix NPE related to X Can't be 0 and Announce
- Added Simic Manipulator
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -9551,6 +9551,7 @@ res/cardsfolder/s/simic_guildgate.txt -text
|
|||||||
res/cardsfolder/s/simic_guildmage.txt -text
|
res/cardsfolder/s/simic_guildmage.txt -text
|
||||||
res/cardsfolder/s/simic_initiate.txt -text
|
res/cardsfolder/s/simic_initiate.txt -text
|
||||||
res/cardsfolder/s/simic_keyrune.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_ragworm.txt svneol=native#text/plain
|
||||||
res/cardsfolder/s/simic_signet.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
|
res/cardsfolder/s/simic_sky_swallower.txt svneol=native#text/plain
|
||||||
|
|||||||
11
res/cardsfolder/s/simic_manipulator.txt
Normal file
11
res/cardsfolder/s/simic_manipulator.txt
Normal 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
|
||||||
@@ -1701,7 +1701,8 @@ public abstract class SpellAbility implements ISpellAbility {
|
|||||||
String value = this.getActivatingPlayer().getController().announceRequirements(this, aVar);
|
String value = this.getActivatingPlayer().getController().announceRequirements(this, aVar);
|
||||||
if (value == null || !StringUtils.isNumeric(value)) {
|
if (value == null || !StringUtils.isNumeric(value)) {
|
||||||
return false;
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
this.setSVar(aVar, "Number$" + value);
|
this.setSVar(aVar, "Number$" + value);
|
||||||
|
|||||||
Reference in New Issue
Block a user