From f3310555403d88e7e189792a0f72c6c8adfdfec5 Mon Sep 17 00:00:00 2001 From: jendave Date: Sat, 6 Aug 2011 12:39:40 +0000 Subject: [PATCH] convert Rakdos, Pit Dragon to stPumpSelf keyword --- res/cardsfolder/rakdos_pit_dragon.txt | 3 +- src/forge/GameActionUtil.java | 48 ++------------------------- src/forge/StaticEffects.java | 1 - 3 files changed, 4 insertions(+), 48 deletions(-) diff --git a/res/cardsfolder/rakdos_pit_dragon.txt b/res/cardsfolder/rakdos_pit_dragon.txt index 51c9a5e2283..b98fe979356 100644 --- a/res/cardsfolder/rakdos_pit_dragon.txt +++ b/res/cardsfolder/rakdos_pit_dragon.txt @@ -1,10 +1,11 @@ Name:Rakdos Pit Dragon ManaCost:2 R R Types:Creature Dragon -Text:Hellbent - Rakdos Pit Dragon has double strike as long as you have no cards in hand. +Text:no text PT:3/3 A:AB$Pump | Cost$ R R | KW$ Flying | SpellDescription$ Rakdos Pit Dragon gains flying until end of turn. A:AB$Pump | Cost$ R | NumAtt$ +1 | SpellDescription$ Rakdos Pit Dragon gets +1/+0 until end of turn. +K:stPumpSelf:Creature:0/0/Double Strike:Hellbent:Hellbent Ñ Rakdos Pit Dragon has double strike as long as you have no cards in hand. SVar:Rarity:Rare SVar:Picture:http://www.wizards.com/global/images/magic/general/rakdos_pit_dragon.jpg SetInfo:DIS|Rare|http://magiccards.info/scans/en/di/69.jpg diff --git a/src/forge/GameActionUtil.java b/src/forge/GameActionUtil.java index aa4264ed1aa..885293d3c13 100644 --- a/src/forge/GameActionUtil.java +++ b/src/forge/GameActionUtil.java @@ -15025,35 +15025,6 @@ public class GameActionUtil { }// execute() }; - public static Command Rakdos_Pit_Dragon = new Command() { - private static final long serialVersionUID = -8778900687347191964L; - - public void execute() { - CardList list = AllZoneUtil.getCardsInPlay("Rakdos Pit Dragon"); - - for(int i = 0; i < list.size(); i++) { - Card c = list.get(i); - if(hellbent(c.getController()) - && !c.getIntrinsicKeyword().contains( - "Double Strike")) c.addIntrinsicKeyword("Double Strike"); - else if(!hellbent(c.getController()) - && c.getIntrinsicKeyword().contains( - "Double Strike")) c.removeIntrinsicKeyword("Double Strike"); - } - } - - private boolean hellbent(Player player) { - PlayerZone hand = AllZone.getZone( - Constant.Zone.Hand, player); - - CardList list = new CardList(); - list.addAll(hand.getCards()); - - return list.size() == 0; - } - - }; //Rakdos Pit Dragon - public static Command Nyxathid = new Command() { private static final long serialVersionUID = -8778900687347191964L; @@ -15092,25 +15063,11 @@ public class GameActionUtil { for(int i = 0; i < list.size(); i++) { Card c = list.get(i); - c.setBaseAttack(countCards()); + CardList graves = AllZoneUtil.getCardsInGraveyard(); + c.setBaseAttack(graves.size()); c.setBaseDefense(c.getBaseAttack()); } } - - private int countCards() { - PlayerZone compGrave = AllZone.getZone( - Constant.Zone.Graveyard, - AllZone.ComputerPlayer); - PlayerZone humGrave = AllZone.getZone( - Constant.Zone.Graveyard, - AllZone.HumanPlayer); - CardList list = new CardList(); - list.addAll(compGrave.getCards()); - list.addAll(humGrave.getCards()); - - return list.size(); - } - }; //Lord of Extinction @@ -16316,7 +16273,6 @@ public class GameActionUtil { commands.put("Plague_Rats", Plague_Rats); commands.put("Primalcrux", Primalcrux); - commands.put("Rakdos_Pit_Dragon", Rakdos_Pit_Dragon); commands.put("Ruthless_Cullblade", Ruthless_Cullblade); commands.put("Serpent_of_the_Endless_Sea", Serpent_of_the_Endless_Sea); diff --git a/src/forge/StaticEffects.java b/src/forge/StaticEffects.java index 174c7046bab..654848c37b3 100644 --- a/src/forge/StaticEffects.java +++ b/src/forge/StaticEffects.java @@ -115,7 +115,6 @@ public class StaticEffects cardToEffectsList.put("Plague Rats", new String[] {"Plague_Rats"}); cardToEffectsList.put("Primalcrux",new String[] {"Primalcrux"}); - cardToEffectsList.put("Rakdos Pit Dragon", new String[] {"Rakdos_Pit_Dragon"}); cardToEffectsList.put("Ruthless Cullblade", new String[] {"Ruthless_Cullblade"}); cardToEffectsList.put("Serpent of the Endless Sea", new String[] {"Serpent_of_the_Endless_Sea"});