- Added Autumn's Veil

This commit is contained in:
swordshine
2013-07-14 07:00:17 +00:00
parent 995c5705e5
commit 5a30bc849e
3 changed files with 16 additions and 2 deletions

1
.gitattributes vendored
View File

@@ -635,6 +635,7 @@ res/cardsfolder/a/aurora_griffin.txt svneol=native#text/plain
res/cardsfolder/a/auspicious_ancestor.txt svneol=native#text/plain
res/cardsfolder/a/austere_command.txt svneol=native#text/plain
res/cardsfolder/a/autochthon_wurm.txt -text
res/cardsfolder/a/autumns_veil.txt -text
res/cardsfolder/a/avacyn_angel_of_hope.txt -text
res/cardsfolder/a/avacynian_priest.txt -text
res/cardsfolder/a/avacyns_collar.txt -text

View File

@@ -0,0 +1,10 @@
Name:Autumn's Veil
ManaCost:G
Types:Instant
A:SP$ Effect | Cost$ G | Name$ Autumn's Veil Effect | StaticAbilities$ AntiBlueBlack,STCantBeTarget | SpellDescription$ Spells you control can't be countered by blue or black spells this turn, and creatures you control can't be the targets of blue or black spells this turn.
SVar:AntiBlueBlack:Mode$ Continuous | Affected$ Card.YouCtrl | AffectedZone$ Stack | EffectZone$ Command | AddHiddenKeyword$ CARDNAME can't be countered by blue or black spells. | Description$ Spells you control can't be countered by blue or black spells this turn.
SVar:STCantBeTarget:Mode$ CantTarget | ValidCard$ Creature.YouCtrl | ValidSource$ Card.Blue,Card.Black | Spell$ True | EffectZone$ Command | Description$ Creatures you control can't be the targets of blue or black spells this turn.
SVar:RemAIDeck:True
SVar:RemRandomDeck:True
SVar:Picture:http://www.wizards.com/global/images/magic/general/autumns_veil.jpg
Oracle:Spells you control can't be countered by blue or black spells this turn, and creatures you control can't be the targets of blue or black spells this turn.

View File

@@ -753,8 +753,11 @@ public class CardFactoryUtil {
if (!isCounterable(c)) {
return false;
}
//TODO: Add code for Autumn's Veil here
// Autumn's Veil
if (c.hasKeyword("CARDNAME can't be countered by blue or black spells.") && sa.isSpell()
&& (sa.getSourceCard().isBlack() || sa.getSourceCard().isBlue())) {
return false;
}
return true;
}