From dc0706a673f1cdcf24794b3b1cc65c3766a49809 Mon Sep 17 00:00:00 2001 From: Sol Date: Wed, 27 Feb 2013 04:28:08 +0000 Subject: [PATCH] - Allow Vanguard types to take advantage of the Play with the top card of your library revealed - Add Vampire Nocturnus Avatar --- .gitattributes | 1 + res/cardsfolder/v/vampire_nocturnus_avatar.txt | 8 ++++++++ src/main/java/forge/gui/CardDetailPanel.java | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 res/cardsfolder/v/vampire_nocturnus_avatar.txt diff --git a/.gitattributes b/.gitattributes index 3515cd66844..fd6d273b9e5 100644 --- a/.gitattributes +++ b/.gitattributes @@ -11408,6 +11408,7 @@ res/cardsfolder/v/vampire_interloper.txt -text res/cardsfolder/v/vampire_lacerator.txt svneol=native#text/plain res/cardsfolder/v/vampire_nighthawk.txt svneol=native#text/plain res/cardsfolder/v/vampire_nocturnus.txt svneol=native#text/plain +res/cardsfolder/v/vampire_nocturnus_avatar.txt -text res/cardsfolder/v/vampire_outcasts.txt svneol=native#text/plain res/cardsfolder/v/vampires_bite.txt svneol=native#text/plain res/cardsfolder/v/vampiric_dragon.txt svneol=native#text/plain diff --git a/res/cardsfolder/v/vampire_nocturnus_avatar.txt b/res/cardsfolder/v/vampire_nocturnus_avatar.txt new file mode 100644 index 00000000000..77bc7276877 --- /dev/null +++ b/res/cardsfolder/v/vampire_nocturnus_avatar.txt @@ -0,0 +1,8 @@ +Name:Vampire Nocturnus Avatar +ManaCost:no cost +Types:Vanguard +HandLifeModifier:-1/-2 +K:Play with the top card of your library revealed. +S:Mode$ Continuous | EffectZone$ Command | Affected$ Creature.Black+YouCtrl | AddPower$ 2 | AddToughness$ 1 | TopCardOfLibraryIs$ Card.Black | Description$ As long as the top card of your library is black, black creatures you control get +2/+1. +SetInfo:VAN|Special|http://magiccards.info/extras/other/vanguard-mtgo-2/vampire-nocturnus.jpg +Oracle:Hand -1, life -2\nPlay with the top card of your library revealed.\nAs long as the top card of your library is black, black creatures you control get +2/+1. diff --git a/src/main/java/forge/gui/CardDetailPanel.java b/src/main/java/forge/gui/CardDetailPanel.java index b05b1d6916d..0b9b022dbb2 100644 --- a/src/main/java/forge/gui/CardDetailPanel.java +++ b/src/main/java/forge/gui/CardDetailPanel.java @@ -341,7 +341,7 @@ public class CardDetailPanel extends FPanel { if ((card.hasKeyword("Play with the top card of your library revealed.") || card .hasKeyword("Players play with the top card of their libraries revealed.")) && (card.getController() != null) - && card.isInZone(ZoneType.Battlefield) + && (card.isInZone(ZoneType.Battlefield) || (card.isType("Vanguard") && card.isInZone(ZoneType.Command))) && !card.getController().getZone(ZoneType.Library).isEmpty()) { area.append("\r\nTop card of your library: "); area.append(card.getController().getCardsIn(ZoneType.Library, 1));