From e7f91f20c27168ef2ced52b6602bab0b9073d7af Mon Sep 17 00:00:00 2001 From: beholder Date: Thu, 22 Sep 2011 13:58:53 +0200 Subject: [PATCH] added Shivan Hellkite, Skyhunter Skirmisher, Skyhunter Prowler, Skyhunter Patrol --- resources/magic/data/cards.txt | 52 +++++++++++++++++++++++++++ src/magic/card/Shivan_Hellkite.java | 54 +++++++++++++++++++++++++++++ 2 files changed, 106 insertions(+) create mode 100644 src/magic/card/Shivan_Hellkite.java diff --git a/resources/magic/data/cards.txt b/resources/magic/data/cards.txt index 38c194c58c..8bc5cd550c 100644 --- a/resources/magic/data/cards.txt +++ b/resources/magic/data/cards.txt @@ -1,3 +1,55 @@ +>Skyhunter Patrol +image=http://magiccards.info/scans/en/10e/41.jpg +value=3 +rarity=C +type=Creature +subtype=Cat,Knight +color=w +converted=4 +cost={2}{W}{W} +pt=2/3 +ability=flying,first strike +timing=main + +>Skyhunter Prowler +image=http://magiccards.info/scans/en/10e/42.jpg +value=3 +rarity=C +type=Creature +subtype=Cat,Knight +color=w +converted=3 +cost={2}{W} +pt=1/3 +ability=flying,vigilance +timing=main + +>Skyhunter Skirmisher +image=http://magiccards.info/scans/en/10e/43.jpg +value=2 +rarity=U +type=Creature +subtype=Cat,Knight +color=w +converted=3 +cost={1}{W}{W} +pt=1/1 +ability=flying,double strike +timing=main + +>Shivan Hellkite +image=http://magiccards.info/scans/en/10e/231.jpg +value=5 +rarity=R +type=Creature +subtype=Dragon +color=r +converted=7 +cost={5}{R}{R} +pt=5/5 +ability=flying +timing=main + >Seedborn Muse image=http://magiccards.info/scans/en/10e/296.jpg value=4 diff --git a/src/magic/card/Shivan_Hellkite.java b/src/magic/card/Shivan_Hellkite.java new file mode 100644 index 0000000000..551ba2b1b2 --- /dev/null +++ b/src/magic/card/Shivan_Hellkite.java @@ -0,0 +1,54 @@ +package magic.card; + +import magic.model.MagicDamage; +import magic.model.MagicGame; +import magic.model.MagicManaCost; +import magic.model.MagicPayedCost; +import magic.model.MagicPermanent; +import magic.model.MagicSource; +import magic.model.action.MagicDealDamageAction; +import magic.model.action.MagicTargetAction; +import magic.model.choice.MagicTargetChoice; +import magic.model.condition.MagicCondition; +import magic.model.event.MagicActivationHints; +import magic.model.event.MagicEvent; +import magic.model.event.MagicPayManaCostEvent; +import magic.model.event.MagicPermanentActivation; +import magic.model.event.MagicTiming; +import magic.model.target.MagicDamageTargetPicker; +import magic.model.target.MagicTarget; + +public class Shivan_Hellkite { + public static final MagicPermanentActivation A = new MagicPermanentActivation( + new MagicCondition[]{MagicManaCost.ONE_RED.getCondition()}, + new MagicActivationHints(MagicTiming.Removal), + "Damage") { + + @Override + public MagicEvent[] getCostEvent(final MagicSource source) { + return new MagicEvent[]{new MagicPayManaCostEvent(source,source.getController(),MagicManaCost.ONE_RED)}; + } + + @Override + public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) { + return new MagicEvent( + source, + source.getController(), + MagicTargetChoice.NEG_TARGET_CREATURE_OR_PLAYER, + new MagicDamageTargetPicker(1), + new Object[]{source}, + this, + source + " deals 1 damage to target creature or player$."); + } + + @Override + public void executeEvent(final MagicGame game,final MagicEvent event,final Object[] data,final Object[] choiceResults) { + event.processTarget(game,choiceResults,0,new MagicTargetAction() { + public void doAction(final MagicTarget target) { + final MagicDamage damage=new MagicDamage((MagicSource)data[0],target,1,false); + game.doAction(new MagicDealDamageAction(damage)); + } + }); + } + }; +}