mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
- Added Runed Halo
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -8856,6 +8856,7 @@ res/cardsfolder/r/runeboggle.txt svneol=native#text/plain
|
|||||||
res/cardsfolder/r/runechanters_pike.txt -text
|
res/cardsfolder/r/runechanters_pike.txt -text
|
||||||
res/cardsfolder/r/runeclaw_bear.txt svneol=native#text/plain
|
res/cardsfolder/r/runeclaw_bear.txt svneol=native#text/plain
|
||||||
res/cardsfolder/r/runed_arch.txt svneol=native#text/plain
|
res/cardsfolder/r/runed_arch.txt svneol=native#text/plain
|
||||||
|
res/cardsfolder/r/runed_halo.txt -text
|
||||||
res/cardsfolder/r/runed_servitor.txt svneol=native#text/plain
|
res/cardsfolder/r/runed_servitor.txt svneol=native#text/plain
|
||||||
res/cardsfolder/r/runed_stalactite.txt svneol=native#text/plain
|
res/cardsfolder/r/runed_stalactite.txt svneol=native#text/plain
|
||||||
res/cardsfolder/r/runeflare_trap.txt -text
|
res/cardsfolder/r/runeflare_trap.txt -text
|
||||||
|
|||||||
10
res/cardsfolder/r/runed_halo.txt
Normal file
10
res/cardsfolder/r/runed_halo.txt
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
Name:Runed Halo
|
||||||
|
ManaCost:W W
|
||||||
|
Types:Enchantment
|
||||||
|
K:ETBReplacement:Other:DBNameCard
|
||||||
|
SVar:DBNameCard:DB$ NameCard | Defined$ You | SpellDescription$ As CARDNAME enters the battlefield, name a card.
|
||||||
|
S:Mode$ Continuous | Affected$ You | AddKeyword$ Protection:ChosenName | Description$ You have protection from the chosen name. (You can't be targeted, dealt damage, or enchanted by anything with that name.)
|
||||||
|
SVar:RemAIDeck:True
|
||||||
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/runed_halo.jpg
|
||||||
|
Oracle:As Runed Halo enters the battlefield, name a card.\nYou have protection from the chosen name. (You can't be targeted, dealt damage, or enchanted by anything with that name.)
|
||||||
|
SetInfo:SHM Rare
|
||||||
@@ -154,6 +154,12 @@ public class StaticAbilityContinuous {
|
|||||||
for (int w = 0; w < addKeywords.length; w++) {
|
for (int w = 0; w < addKeywords.length; w++) {
|
||||||
addKeywords[w] = addKeywords[w].replaceAll("ChosenType", chosenType);
|
addKeywords[w] = addKeywords[w].replaceAll("ChosenType", chosenType);
|
||||||
}
|
}
|
||||||
|
final String chosenName = hostCard.getNamedCard();
|
||||||
|
for (int w = 0; w < addKeywords.length; w++) {
|
||||||
|
if (addKeywords[w].startsWith("Protection:")) {
|
||||||
|
addKeywords[w] = addKeywords[w].replaceAll("ChosenName", "Card.named" + chosenName);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (params.containsKey("AddHiddenKeyword")) {
|
if (params.containsKey("AddHiddenKeyword")) {
|
||||||
|
|||||||
Reference in New Issue
Block a user