- Added Whipgrass Entangler (the last one for Legions set)

This commit is contained in:
swordshine
2013-04-17 13:09:41 +00:00
parent a4743c1035
commit 2ccb64efa3
3 changed files with 17 additions and 0 deletions

1
.gitattributes vendored
View File

@@ -12150,6 +12150,7 @@ res/cardsfolder/w/whip_spine_drake.txt svneol=native#text/plain
res/cardsfolder/w/whip_vine.txt svneol=native#text/plain
res/cardsfolder/w/whipcorder.txt svneol=native#text/plain
res/cardsfolder/w/whipflare.txt svneol=native#text/plain
res/cardsfolder/w/whipgrass_entangler.txt -text
res/cardsfolder/w/whipkeeper.txt -text
res/cardsfolder/w/whiplash_trap.txt svneol=native#text/plain
res/cardsfolder/w/whipstitched_zombie.txt svneol=native#text/plain

View File

@@ -0,0 +1,12 @@
Name:Whipgrass Entangler
ManaCost:2 W
Types:Creature Human Cleric
PT:1/3
A:AB$ Animate | Cost$ 1 W | ValidTgts$ Creature | staticAbilities$ WhipgrassCantAttack,WhipgrassCantBlock | sVars$ WhipgrassClericNum | SpellDescription$ Until end of turn, target creature gains "This creature can't attack or block unless its controller pays 1 for each Cleric on the battlefield."
SVar:WhipgrassCantAttack:Mode$ CantAttackUnless | ValidCard$ Card.Self | Cost$ WhipgrassClericNum | References$ WhipgrassClericNum | Description$ CARDNAME can't attack or block unless you pay 1 for each Cleric on the battlefield.
SVar:WhipgrassCantBlock:Mode$ CantBlockUnless | ValidCard$ Card.Self | Cost$ WhipgrassClericNum | References$ WhipgrassClericNum
SVar:WhipgrassClericNum:Count$Valid Cleric
SVar:RemAIDeck:True
SVar:Picture:http://www.wizards.com/global/images/magic/general/whipgrass_entangler.jpg
Oracle:{1}{W}: Until end of turn, target creature gains "This creature can't attack or block unless its controller pays {1} for each Cleric on the battlefield."
SetInfo:LGN Common

View File

@@ -82,6 +82,8 @@ public class StaticAbilityCantAttackBlock {
costString = Integer.toString(CardFactoryUtil.xCount(hostCard, hostCard.getSVar("X")));
} else if ("Y".equals(costString)) {
costString = Integer.toString(CardFactoryUtil.xCount(hostCard, hostCard.getSVar("Y")));
} else if (params.containsKey("References")) {
costString = Integer.toString(CardFactoryUtil.xCount(hostCard, hostCard.getSVar(params.get("References"))));
}
final Cost cost = new Cost(costString, true);
@@ -116,6 +118,8 @@ public class StaticAbilityCantAttackBlock {
costString = Integer.toString(CardFactoryUtil.xCount(hostCard, hostCard.getSVar("X")));
} else if ("Y".equals(costString)) {
costString = Integer.toString(CardFactoryUtil.xCount(hostCard, hostCard.getSVar("Y")));
} else if (params.containsKey("References")) {
costString = Integer.toString(CardFactoryUtil.xCount(hostCard, hostCard.getSVar(params.get("References"))));
}
final Cost cost = new Cost(costString, true);