From 0ddf9c891c69bc5d5384ff1a6969db8fb9abb4aa Mon Sep 17 00:00:00 2001 From: jendave Date: Sat, 6 Aug 2011 02:57:28 +0000 Subject: [PATCH] -Add cards: Thoughtcutter Agent, Singe-Mind Ogre --- res/card-pictures.txt | 2 + res/cards.txt | 12 +++++ src/forge/CardFactory_Creatures.java | 68 ++++++++++++++++++++++++++++ 3 files changed, 82 insertions(+) diff --git a/res/card-pictures.txt b/res/card-pictures.txt index 0ffa3f117ec..ac6eeadd11f 100644 --- a/res/card-pictures.txt +++ b/res/card-pictures.txt @@ -18,6 +18,8 @@ forest.jpg http://resources.wizards.com/magic/cards/unh/en-us/card73946.jpg forest1.jpg http://gatherer.wizards.com/handlers/image.ashx?type=card&multiverseid=2748 forest2.jpg http://gatherer.wizards.com/handlers/image.ashx?type=card&multiverseid=587 forest3.jpg http://gatherer.wizards.com/handlers/image.ashx?type=card&multiverseid=586 +thoughtcutter_agent.jpg http://magic.tcgplayer.com/db/cards/16857.jpg +singe_mind_ogre.jpg http://magic.tcgplayer.com/db/cards/17138.jpg chainer_dementia_master.jpg http://www.wizards.com/global/images/magic/general/chainer_dementia_master.jpg vorosh_the_hunter.jpg http://www.wizards.com/global/images/magic/general/vorosh_the_hunter.jpg rith_the_awakener.jpg http://www.wizards.com/global/images/magic/general/rith_the_awakener.jpg diff --git a/res/cards.txt b/res/cards.txt index c542b798956..18da99fbeb4 100644 --- a/res/cards.txt +++ b/res/cards.txt @@ -1,3 +1,15 @@ +Singe-Mind Ogre +2 B R +Creature Ogre Mutant +When Singe-Mind Ogre comes into play, target player reveals a card at random from his or her hand, then loses life equal to that card's converted mana cost. +3/2 + +Thoughtcutter Agent +U B +Artifact Creature Human Rogue +no text +1/1 + Earthbind R Enchantment Aura diff --git a/src/forge/CardFactory_Creatures.java b/src/forge/CardFactory_Creatures.java index b809dcd7afd..98f45d72d3a 100644 --- a/src/forge/CardFactory_Creatures.java +++ b/src/forge/CardFactory_Creatures.java @@ -18033,6 +18033,74 @@ public class CardFactory_Creatures { card.addLeavesPlayCommand(leavesPlay); }//*************** END ************ END ************************** + //*************** START *********** START ************************** + else if(cardName.equals("Thoughtcutter Agent")) + { + final SpellAbility ability = new Ability_Tap(card, "U B") + { + private static final long serialVersionUID = -3880035465617987801L; + public void resolve() + { + String opponent = AllZone.GameAction.getOpponent(card.getController()); + PlayerZone hand = AllZone.getZone(Constant.Zone.Hand, opponent); + AllZone.GameAction.getPlayerLife(opponent).subtractLife(1); + Card[] handLook= hand.getCards(); + if(opponent.equals(Constant.Player.Computer)) + { + AllZone.Display.getChoice("Look", handLook); + } + + } + public boolean canPlayAI() + { + //computer should play ability if this creature doesn't attack + Combat c = ComputerUtil.getAttackers(); + CardList list = new CardList(c.getAttackers()); + + //could this creature attack?, if attacks, do not use ability + return (! list.contains(card)); + } + };//SpellAbility + card.addSpellAbility(ability); + ability.setDescription("U B, tap: Target player loses 1 life and reveals his or her hand."); + ability.setStackDescription(card.getName() + " - Opponent loses 1 life."); + }//*************** END ************ END ************************** + + //*************** START *********** START ************************** + else if(cardName.equals("Singe-Mind Ogre")) + { + final SpellAbility ability = new Ability(card, "0") + { + public void resolve() + { + Card choice = null; + String opponent = AllZone.GameAction.getOpponent(card.getController()); + PlayerZone hand = AllZone.getZone(Constant.Zone.Hand, opponent); + Card[] handChoices = hand.getCards(); + choice = CardUtil.getRandom(handChoices); + handChoices[0]=choice; + for (int i=1; i