From e021be3daf80f931d3419f275a113a4d32979056 Mon Sep 17 00:00:00 2001 From: beholder Date: Fri, 30 Sep 2011 11:14:19 +0200 Subject: [PATCH] added Spectral Rider and Spidery Grasp. corrected Somberwald Spider --- resources/magic/data/cards2.txt | 24 ++++++++++++++++ src/magic/card/Spidery_Grasp.java | 48 +++++++++++++++++++++++++++++++ 2 files changed, 72 insertions(+) create mode 100644 src/magic/card/Spidery_Grasp.java diff --git a/resources/magic/data/cards2.txt b/resources/magic/data/cards2.txt index daf10638a4..cb5cb8f312 100644 --- a/resources/magic/data/cards2.txt +++ b/resources/magic/data/cards2.txt @@ -5002,6 +5002,7 @@ color=g converted=5 cost={4}{G} pt=2/4 +ability=reach timing=main >Spectral Flight @@ -5016,3 +5017,26 @@ cost={1}{U} given_pt=2/2 given_ability=flying timing=aura + +>Spectral Rider +image=http://magiccards.info/scans/en/isd/35.jpg +value=3 +rarity=U +type=Creature +subtype=Spirit,Knight +color=w +converted=2 +cost={W}{W} +pt=2/2 +ability=intimidate +timing=main + +>Spidery Grasp +image=http://magiccards.info/scans/en/isd/204.jpg +value=3 +rarity=C +type=Instant +color=g +converted=3 +cost={2}{G} +timing=tapping diff --git a/src/magic/card/Spidery_Grasp.java b/src/magic/card/Spidery_Grasp.java new file mode 100644 index 0000000000..e4c8dc2f96 --- /dev/null +++ b/src/magic/card/Spidery_Grasp.java @@ -0,0 +1,48 @@ +package magic.card; + +import magic.model.MagicAbility; +import magic.model.MagicGame; +import magic.model.MagicPayedCost; +import magic.model.MagicPermanent; +import magic.model.action.MagicChangeTurnPTAction; +import magic.model.action.MagicMoveCardAction; +import magic.model.action.MagicPermanentAction; +import magic.model.action.MagicSetAbilityAction; +import magic.model.action.MagicUntapAction; +import magic.model.choice.MagicTargetChoice; +import magic.model.event.MagicEvent; +import magic.model.event.MagicSpellCardEvent; +import magic.model.stack.MagicCardOnStack; +import magic.model.target.MagicPumpTargetPicker; + +public class Spidery_Grasp { + public static final MagicSpellCardEvent S = new MagicSpellCardEvent() { + @Override + public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) { + return new MagicEvent( + cardOnStack.getCard(), + cardOnStack.getController(), + MagicTargetChoice.POS_TARGET_CREATURE, + MagicPumpTargetPicker.getInstance(), + new Object[]{cardOnStack}, + this, + "Untap target creature$. It gets +2/+4 " + + "and gains reach until end of turn."); + } + @Override + public void executeEvent( + final MagicGame game, + final MagicEvent event, + final Object[] data, + final Object[] choiceResults) { + game.doAction(new MagicMoveCardAction((MagicCardOnStack)data[0])); + event.processTargetPermanent(game,choiceResults,0,new MagicPermanentAction() { + public void doAction(final MagicPermanent creature) { + game.doAction(new MagicUntapAction(creature)); + game.doAction(new MagicChangeTurnPTAction(creature,2,4)); + game.doAction(new MagicSetAbilityAction(creature,MagicAbility.Reach)); + } + }); + } + }; +}