From a4a8c208d532c4964d12ea8287e44dd726411926 Mon Sep 17 00:00:00 2001 From: jendave Date: Sat, 6 Aug 2011 18:23:37 +0000 Subject: [PATCH] add Spectral Shield (from Ice Age; includes keyword CARDNAME can't be the target of spells.) --- .gitattributes | 1 + res/cardsfolder/spectral_shield.txt | 9 +++++++++ src/forge/CardFactoryUtil.java | 4 ++++ 3 files changed, 14 insertions(+) create mode 100644 res/cardsfolder/spectral_shield.txt diff --git a/.gitattributes b/.gitattributes index b73050921bf..b7fb42b31eb 100644 --- a/.gitattributes +++ b/.gitattributes @@ -5573,6 +5573,7 @@ res/cardsfolder/spectral_guardian.txt -text svneol=native#text/plain res/cardsfolder/spectral_lynx.txt -text svneol=native#text/plain res/cardsfolder/spectral_procession.txt -text svneol=native#text/plain res/cardsfolder/spectral_searchlight.txt -text svneol=native#text/plain +res/cardsfolder/spectral_shield.txt -text svneol=native#text/plain res/cardsfolder/spectral_sliver.txt svneol=native#text/plain res/cardsfolder/spell_contortion.txt -text svneol=native#text/plain res/cardsfolder/spell_pierce.txt -text svneol=native#text/plain diff --git a/res/cardsfolder/spectral_shield.txt b/res/cardsfolder/spectral_shield.txt new file mode 100644 index 00000000000..57f009c77fd --- /dev/null +++ b/res/cardsfolder/spectral_shield.txt @@ -0,0 +1,9 @@ +Name:Spectral Shield +ManaCost:1 W U +Types:Enchantment Aura +Text:no text +K:Enchant creature +K:enPump:+1/+1/HIDDEN CARDNAME can't be the target of spells. +SVar:Rarity:Uncommon +SVar:Picture:http://www.wizards.com/global/images/magic/general/spectral_shield.jpg +End \ No newline at end of file diff --git a/src/forge/CardFactoryUtil.java b/src/forge/CardFactoryUtil.java index 5aa7a6fc9b0..48d3830e66a 100644 --- a/src/forge/CardFactoryUtil.java +++ b/src/forge/CardFactoryUtil.java @@ -3081,6 +3081,10 @@ public class CardFactoryUtil { if(kw.equals("CARDNAME can't be the target of blue spells.")) { if(spell.isBlue() && spell.isSpell()) return false; } + + if(kw.equals("CARDNAME can't be the target of spells.")) { + if(spell.isSpell()) return false; + } } } return true;