convert Vampire Nocturnus to stPumpSelf and stPumpAll keywords.

This commit is contained in:
jendave
2011-08-06 13:18:52 +00:00
parent eb46e2a059
commit 4c67d03354
3 changed files with 7 additions and 45 deletions

View File

@@ -1,9 +1,11 @@
Name:Vampire Nocturnus
ManaCost:1 B B B
Types:Creature Vampire
Text:As long as the top card of your library is black, Vampire Nocturnus and other Vampire creatures you control get +2/+1 and have flying.
Text:no text
PT:3/3
K:Play with the top card of your library revealed.
K:stPumpSelf:Permanent:2/1/Flying:TopCardOfLibraryIsBlack:As long as the top card of your library is black, CARDNAME and other Vampire creatures you control get +2/+1 and have flying.
K:stPumpAll:Creature.Vampire+Other+YouCtrl:2/1/Flying:TopCardOfLibraryIsBlack:no text
SVar:PlayMain1:TRUE
SVar:Rarity:Mythic
SVar:Picture:http://www.wizards.com/global/images/magic/general/vampire_nocturnus.jpg

View File

@@ -12470,6 +12470,10 @@ public class GameActionUtil {
CardList oppHand = AllZoneUtil.getPlayerHand(SourceCard.getController().getOpponent());
if(!(oppHand.size() == 0)) return false;
}
if(SpecialConditions.contains("TopCardOfLibraryIsBlack")) {
PlayerZone lib = AllZone.getZone(Constant.Zone.Library, SourceCard.getController());
if(!(lib.get(0).isBlack())) return false;
}
if(SpecialConditions.contains("LibraryLE")) {
CardList Library = new CardList();
Library.addAll(AllZone.getZone(Constant.Zone.Library, SourceCard.getController()).getCards());
@@ -13642,48 +13646,6 @@ public class GameActionUtil {
}
};
public static Command Vampire_Nocturnus = new Command() {
private static final long serialVersionUID = 666334034902503917L;
CardList gloriousAnthemList = new CardList();
public void execute() {
CardList list = gloriousAnthemList;
Card c;
// reset all cards in list - aka "old" cards
for(int i = 0; i < list.size(); i++) {
c = list.get(i);
c.addSemiPermanentAttackBoost(-2);
c.addSemiPermanentDefenseBoost(-1);
c.removeExtrinsicKeyword("Flying");
}
// add +1/+1 to cards
list.clear();
PlayerZone[] zone = getZone("Vampire Nocturnus");
// for each zone found add +1/+1 to each card
for(int outer = 0; outer < zone.length; outer++) {
CardList creature = new CardList(
zone[outer].getCards());
creature = creature.getType("Vampire");
for(int i = 0; i < creature.size(); i++) {
c = creature.get(i);
if (CardFactoryUtil.getTopCard(c) != null)
{
if((CardFactoryUtil.getTopCard(c)).isBlack()) {
c.addSemiPermanentAttackBoost(2);
c.addSemiPermanentDefenseBoost(1);
c.addExtrinsicKeyword("Flying");
gloriousAnthemList.add(c);
}
}//topCard!=null
}// for inner
}// for outer
}// execute()
}; // Vampire Nocturnus
/*
public static Command Dauntless_Dourbark = new Command() {
@@ -16113,7 +16075,6 @@ public class GameActionUtil {
commands.put("Umbra_Stalker", Umbra_Stalker);
commands.put("Vampire_Nocturnus", Vampire_Nocturnus);
commands.put("Vexing_Beetle", Vexing_Beetle);
commands.put("Windwright_Mage", Windwright_Mage);

View File

@@ -123,7 +123,6 @@ public class StaticEffects
cardToEffectsList.put("Umbra Stalker", new String[] {"Umbra_Stalker"});
cardToEffectsList.put("Vampire Nocturnus", new String[]{"Vampire_Nocturnus"});
cardToEffectsList.put("Vexing Beetle", new String[] {"Vexing_Beetle"});
cardToEffectsList.put("Windwright Mage", new String[] {"Windwright_Mage"});