diff --git a/.gitattributes b/.gitattributes index 71338523e6a..50e7292f664 100644 --- a/.gitattributes +++ b/.gitattributes @@ -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 diff --git a/res/cardsfolder/a/autumns_veil.txt b/res/cardsfolder/a/autumns_veil.txt new file mode 100644 index 00000000000..5d11e20661f --- /dev/null +++ b/res/cardsfolder/a/autumns_veil.txt @@ -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. diff --git a/src/main/java/forge/card/cardfactory/CardFactoryUtil.java b/src/main/java/forge/card/cardfactory/CardFactoryUtil.java index 10076b21bf4..879cb286f62 100644 --- a/src/main/java/forge/card/cardfactory/CardFactoryUtil.java +++ b/src/main/java/forge/card/cardfactory/CardFactoryUtil.java @@ -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; }