- Added Ward Sliver. Thanks for the assist moomarc.

This commit is contained in:
jeffwadsworth
2012-03-18 21:48:46 +00:00
parent ef4fe171bb
commit aa3e8db6cb
3 changed files with 20 additions and 0 deletions

1
.gitattributes vendored
View File

@@ -10044,6 +10044,7 @@ res/cardsfolder/w/war_spike_changeling.txt svneol=native#text/plain
res/cardsfolder/w/war_torch_goblin.txt svneol=native#text/plain
res/cardsfolder/w/warbreak_trumpeter.txt svneol=native#text/plain
res/cardsfolder/w/ward_of_bones.txt -text
res/cardsfolder/w/ward_sliver.txt -text svneol=unset#text/plain
res/cardsfolder/w/warden_of_the_wall.txt -text
res/cardsfolder/w/wargate.txt svneol=native#text/plain
res/cardsfolder/w/warlords_axe.txt svneol=native#text/plain

View File

@@ -0,0 +1,13 @@
Name:Ward Sliver
ManaCost:4 W
Types:Creature Sliver
Text:no text
PT:2/2
T:Mode$ ChangesZone | ValidCard$ Card.Self | Origin$ Any | Destination$ Battlefield | Execute$ ChooseColor | Static$ True | TriggerDescription$ As CARDNAME enters the battlefield, choose a color.
SVar:ChooseColor:DB$ ChooseColor | Defined$ You
S:Mode$ Continuous | Affected$ Sliver | AddKeyword$ Protection:Card.ChosenColor:Protection from ChosenColor | Description$ All Slivers have protection from the chosen color.
SVar:RemAIDeck:True
SVar:RemRandomDeck:True
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/ward_sliver.jpg
End

View File

@@ -122,6 +122,12 @@ public class StaticAbilityContinuous {
if (params.containsKey("AddKeyword")) {
addKeywords = params.get("AddKeyword").split(" & ");
final ArrayList<String> chosencolors = hostCard.getChosenColor();
for (final String color : chosencolors) {
for (int w = 0; w < addKeywords.length; w++) {
addKeywords[w] = addKeywords[w].replaceAll("ChosenColor", color.substring(0, 1).toUpperCase().concat(color.substring(1, color.length())));
}
}
}
if (params.containsKey("AddHiddenKeyword")) {