mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
- Added Ward Sliver. Thanks for the assist moomarc.
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -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
|
||||
|
||||
13
res/cardsfolder/w/ward_sliver.txt
Normal file
13
res/cardsfolder/w/ward_sliver.txt
Normal 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
|
||||
@@ -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")) {
|
||||
|
||||
Reference in New Issue
Block a user