From 9e4f70c93902a8173c2614c7e34a38798a015d1f Mon Sep 17 00:00:00 2001 From: ShawnieBoy Date: Mon, 6 Jan 2014 12:55:49 +0000 Subject: [PATCH] Missing Card Scripts --- ..._1_red_Elemental_Shaman_creature_token.txt | 9 ++++ .../Magarena/scripts/Barbarian_Ring.groovy | 43 +++++++++++++++++++ release/Magarena/scripts/Barbarian_Ring.txt | 10 +++++ .../Magarena/scripts/Cloak_of_Feathers.groovy | 23 ++++++++++ .../Magarena/scripts/Cloak_of_Feathers.txt | 9 ++++ release/Magarena/scripts/Ember_Shot.groovy | 24 +++++++++++ release/Magarena/scripts/Ember_Shot.txt | 9 ++++ release/Magarena/scripts/Fiery_Conclusion.txt | 10 +++++ release/Magarena/scripts/Hearthcage_Giant.txt | 11 +++++ .../Magarena/scripts/Kuldotha_Rebirth.groovy | 8 ++++ release/Magarena/scripts/Kuldotha_Rebirth.txt | 10 +++++ release/Magarena/scripts/Leap.txt | 9 ++++ release/Magarena/scripts/Magma_Rift.txt | 10 +++++ .../Magarena/scripts/Pontiff_of_Blight.txt | 11 +++++ .../Magarena/scripts/Privileged_Position.txt | 9 ++++ release/Magarena/scripts/Shrapnel_Blast.txt | 10 +++++ release/Magarena/scripts/Skulltap.txt | 10 +++++ .../Magarena/scripts/Tendrils_of_Despair.txt | 10 +++++ .../Magarena/scripts/Trash_for_Treasure.txt | 10 +++++ release/Magarena/scripts/Vivisection.txt | 10 +++++ release/Magarena/scripts/Wicked_Reward.txt | 10 +++++ 21 files changed, 265 insertions(+) create mode 100644 release/Magarena/scripts/3_1_red_Elemental_Shaman_creature_token.txt create mode 100644 release/Magarena/scripts/Barbarian_Ring.groovy create mode 100644 release/Magarena/scripts/Barbarian_Ring.txt create mode 100644 release/Magarena/scripts/Cloak_of_Feathers.groovy create mode 100644 release/Magarena/scripts/Cloak_of_Feathers.txt create mode 100644 release/Magarena/scripts/Ember_Shot.groovy create mode 100644 release/Magarena/scripts/Ember_Shot.txt create mode 100644 release/Magarena/scripts/Fiery_Conclusion.txt create mode 100644 release/Magarena/scripts/Hearthcage_Giant.txt create mode 100644 release/Magarena/scripts/Kuldotha_Rebirth.groovy create mode 100644 release/Magarena/scripts/Kuldotha_Rebirth.txt create mode 100644 release/Magarena/scripts/Leap.txt create mode 100644 release/Magarena/scripts/Magma_Rift.txt create mode 100644 release/Magarena/scripts/Pontiff_of_Blight.txt create mode 100644 release/Magarena/scripts/Privileged_Position.txt create mode 100644 release/Magarena/scripts/Shrapnel_Blast.txt create mode 100644 release/Magarena/scripts/Skulltap.txt create mode 100644 release/Magarena/scripts/Tendrils_of_Despair.txt create mode 100644 release/Magarena/scripts/Trash_for_Treasure.txt create mode 100644 release/Magarena/scripts/Vivisection.txt create mode 100644 release/Magarena/scripts/Wicked_Reward.txt diff --git a/release/Magarena/scripts/3_1_red_Elemental_Shaman_creature_token.txt b/release/Magarena/scripts/3_1_red_Elemental_Shaman_creature_token.txt new file mode 100644 index 0000000000..4755439bae --- /dev/null +++ b/release/Magarena/scripts/3_1_red_Elemental_Shaman_creature_token.txt @@ -0,0 +1,9 @@ +name=3/1 red Elemental Shaman creature token +image=http://magiccards.info/extras/token/duel-decks-jace-vs-chandra/elemental-shaman.jpg +value=3 +token=Elemental Shaman +type=Creature +subtype=Elemental,Shaman +color=R +cost={0} +pt=3/1 diff --git a/release/Magarena/scripts/Barbarian_Ring.groovy b/release/Magarena/scripts/Barbarian_Ring.groovy new file mode 100644 index 0000000000..020a969759 --- /dev/null +++ b/release/Magarena/scripts/Barbarian_Ring.groovy @@ -0,0 +1,43 @@ +[ + new MagicPermanentActivation( + [ + MagicCondition.THRESHOLD_CONDITION, + ], + new MagicActivationHints(MagicTiming.Removal), + "Damage" + ) { + + @Override + public Iterable getCostEvent(final MagicPermanent source) { + return [ + new MagicPayManaCostEvent(source,"{R}"), + new MagicTapEvent(source), + new MagicSacrificeEvent(source) + ]; + } + + @Override + public MagicEvent getPermanentEvent(final MagicPermanent source, final MagicPayedCost payedCost) { + return new MagicEvent( + source, + MagicTargetChoice.NEG_TARGET_CREATURE_OR_PLAYER, + new MagicDamageTargetPicker(2), + this, + "SN deals 2 damage to target creature or player\$." + ); + } + + @Override + public void executeEvent(final MagicGame game, final MagicEvent event) { + event.processTarget(game, { + final MagicTarget target -> + final MagicDamage damage = new MagicDamage( + event.getSource(), + target, + 2 + ); + game.doAction(new MagicDealDamageAction(damage)); + }); + } + } +] diff --git a/release/Magarena/scripts/Barbarian_Ring.txt b/release/Magarena/scripts/Barbarian_Ring.txt new file mode 100644 index 0000000000..4ecec0d741 --- /dev/null +++ b/release/Magarena/scripts/Barbarian_Ring.txt @@ -0,0 +1,10 @@ +name=Barbarian Ring +url=http://magiccards.info/pd2/en/28.html +image=http://mtgimage.com/card/barbarian%20ring.jpg +value=2.854 +rarity=U +type=Land +mana=r2 +ability=tap pain add mana {R} +timing=land +requires_groovy_code diff --git a/release/Magarena/scripts/Cloak_of_Feathers.groovy b/release/Magarena/scripts/Cloak_of_Feathers.groovy new file mode 100644 index 0000000000..6dc1525015 --- /dev/null +++ b/release/Magarena/scripts/Cloak_of_Feathers.groovy @@ -0,0 +1,23 @@ +[ + new MagicSpellCardEvent() { + @Override + public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) { + return new MagicEvent( + cardOnStack, + MagicTargetChoice.TARGET_CREATURE, + MagicFlyingTargetPicker.getInstance(), + this, + "Target creature\$ gains flying until end of turn. Draw a card." + ); + } + + @Override + public void executeEvent(final MagicGame game, final MagicEvent event) { + event.processTargetPermanent(game, { + final MagicPermanent creature -> + game.doAction(new MagicGainAbilityAction(creature,MagicAbility.Flying)); + game.doAction(new MagicDrawAction(event.getPlayer())); + }); + } + } +] diff --git a/release/Magarena/scripts/Cloak_of_Feathers.txt b/release/Magarena/scripts/Cloak_of_Feathers.txt new file mode 100644 index 0000000000..389e17e65b --- /dev/null +++ b/release/Magarena/scripts/Cloak_of_Feathers.txt @@ -0,0 +1,9 @@ +name=Cloak of Feathers +url=http://magiccards.info/po/en/45.html +image=http://mtgimage.com/card/cloak%20of%20feathers.jpg +value=3.536 +rarity=C +type=Sorcery +cost={U} +timing=main +requires_groovy_code diff --git a/release/Magarena/scripts/Ember_Shot.groovy b/release/Magarena/scripts/Ember_Shot.groovy new file mode 100644 index 0000000000..45181ed0f4 --- /dev/null +++ b/release/Magarena/scripts/Ember_Shot.groovy @@ -0,0 +1,24 @@ +[ + new MagicSpellCardEvent() { + @Override + public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) { + return new MagicEvent( + cardOnStack, + MagicTargetChoice.NEG_TARGET_CREATURE_OR_PLAYER, + new MagicDamageTargetPicker(3), + this, + "SN deals 3 damage to target creature or player\$." + + "Draw a card." + ); + } + @Override + public void executeEvent(final MagicGame game, final MagicEvent event) { + event.processTarget(game, { + final MagicTarget target -> + final MagicDamage damage=new MagicDamage(event.getSource(),target,3); + game.doAction(new MagicDealDamageAction(damage)); + game.doAction(new MagicDrawAction(event.getPlayer())); + }); + } + } +] diff --git a/release/Magarena/scripts/Ember_Shot.txt b/release/Magarena/scripts/Ember_Shot.txt new file mode 100644 index 0000000000..771d2ba92d --- /dev/null +++ b/release/Magarena/scripts/Ember_Shot.txt @@ -0,0 +1,9 @@ +name=Ember Shot +url=http://magiccards.info/ju/en/87.html +image=http://mtgimage.com/card/ember%20shot.jpg +value=0.906 +rarity=C +type=Instant +cost={6}{R} +timing=removal +requires_groovy_code diff --git a/release/Magarena/scripts/Fiery_Conclusion.txt b/release/Magarena/scripts/Fiery_Conclusion.txt new file mode 100644 index 0000000000..711134cb80 --- /dev/null +++ b/release/Magarena/scripts/Fiery_Conclusion.txt @@ -0,0 +1,10 @@ +name=Fiery Conclusion +url=http://magiccards.info/pc2/en/42.html +image=http://mtgimage.com/card/fiery%20conclusion.jpg +value=1.98 +rarity=C +type=Instant +cost={1}{R} +effect=SN deals 5 damage to target creature. +timing=removal +requires_groovy_code=Bone Splinters diff --git a/release/Magarena/scripts/Hearthcage_Giant.txt b/release/Magarena/scripts/Hearthcage_Giant.txt new file mode 100644 index 0000000000..3367e40b29 --- /dev/null +++ b/release/Magarena/scripts/Hearthcage_Giant.txt @@ -0,0 +1,11 @@ +name=Hearthcage Giant +url=http://magiccards.info/lw/en/174.html +image=http://mtgimage.com/card/hearthcage%20giant.jpg +value=3.018 +rarity=U +type=Creature +subtype=Giant,Warrior +cost={6}{R}{R} +pt=5/5 +ability=enters effect PN puts two 3/1 red Elemental Shaman creature tokens onto the battlefield.;pay Sacrifice an Elemental:Target Giant creature gets +3/+1 until end of turn. +timing=main diff --git a/release/Magarena/scripts/Kuldotha_Rebirth.groovy b/release/Magarena/scripts/Kuldotha_Rebirth.groovy new file mode 100644 index 0000000000..37dc836737 --- /dev/null +++ b/release/Magarena/scripts/Kuldotha_Rebirth.groovy @@ -0,0 +1,8 @@ +[ + new MagicAdditionalCost() { + @Override + public MagicEvent getEvent(final MagicSource source) { + return new MagicSacrificePermanentEvent(source, MagicTargetChoice.SACRIFICE_ARTIFACT); + } + } +] diff --git a/release/Magarena/scripts/Kuldotha_Rebirth.txt b/release/Magarena/scripts/Kuldotha_Rebirth.txt new file mode 100644 index 0000000000..755221ef4c --- /dev/null +++ b/release/Magarena/scripts/Kuldotha_Rebirth.txt @@ -0,0 +1,10 @@ +name=Kuldotha Rebirth +url=http://magiccards.info/som/en/96.html +image=http://mtgimage.com/card/kuldotha%20rebirth.jpg +value=3.931 +rarity=C +type=Sorcery +cost={R} +effect=PN puts three 1/1 red Goblin creature tokens onto the battlefield. +timing=main +requires_groovy_code diff --git a/release/Magarena/scripts/Leap.txt b/release/Magarena/scripts/Leap.txt new file mode 100644 index 0000000000..64293ec782 --- /dev/null +++ b/release/Magarena/scripts/Leap.txt @@ -0,0 +1,9 @@ +name=Leap +url=http://magiccards.info/sh/en/35.html +image=http://mtgimage.com/card/leap.jpg +value=4.057 +rarity=C +type=Instant +cost={U} +timing=pump +requires_groovy_code=Cloak of Feathers diff --git a/release/Magarena/scripts/Magma_Rift.txt b/release/Magarena/scripts/Magma_Rift.txt new file mode 100644 index 0000000000..fa91a6024b --- /dev/null +++ b/release/Magarena/scripts/Magma_Rift.txt @@ -0,0 +1,10 @@ +name=Magma Rift +url=http://magiccards.info/zen/en/136.html +image=http://mtgimage.com/card/magma%20rift.jpg +value=1.872 +rarity=C +type=Sorcery +cost={2}{R} +effect=SN deals 5 damage to target creature. +timing=main +requires_groovy_code=Shard Volley diff --git a/release/Magarena/scripts/Pontiff_of_Blight.txt b/release/Magarena/scripts/Pontiff_of_Blight.txt new file mode 100644 index 0000000000..8815b7e59a --- /dev/null +++ b/release/Magarena/scripts/Pontiff_of_Blight.txt @@ -0,0 +1,11 @@ +name=Pontiff of Blight +url=http://magiccards.info/dgm/en/27.html +image=http://mtgimage.com/card/pontiff%20of%20blight.jpg +value=4.117 +rarity=R +type=Creature +subtype=Zombie,Cleric +cost={4}{B}{B} +ability=extort;lord other creatures you control have extort +pt=2/7 +timing=main diff --git a/release/Magarena/scripts/Privileged_Position.txt b/release/Magarena/scripts/Privileged_Position.txt new file mode 100644 index 0000000000..9ded5adeb2 --- /dev/null +++ b/release/Magarena/scripts/Privileged_Position.txt @@ -0,0 +1,9 @@ +name=Privileged Position +url=http://magiccards.info/rav/en/251.html +image=http://mtgimage.com/card/privileged%20position.jpg +value=4.49 +rarity=R +type=Enchantment +cost={2}{G/W}{G/W}{G/W} +ability=lord other permanents you control have hexproof. +timing=enchantment diff --git a/release/Magarena/scripts/Shrapnel_Blast.txt b/release/Magarena/scripts/Shrapnel_Blast.txt new file mode 100644 index 0000000000..767b0a02fc --- /dev/null +++ b/release/Magarena/scripts/Shrapnel_Blast.txt @@ -0,0 +1,10 @@ +name=Shrapnel Blast +url=http://magiccards.info/mma/en/129.html +image=http://mtgimage.com/card/shrapnel%20blast.jpg +value=4.357 +rarity=U +type=Instant +cost={1}{R} +effect=SN deals 5 damage to target creature or player. +timing=removal +requires_groovy_code=Kuldotha Rebirth diff --git a/release/Magarena/scripts/Skulltap.txt b/release/Magarena/scripts/Skulltap.txt new file mode 100644 index 0000000000..e6b4d8a32c --- /dev/null +++ b/release/Magarena/scripts/Skulltap.txt @@ -0,0 +1,10 @@ +name=Skulltap +url=http://magiccards.info/sc/en/73.html +image=http://mtgimage.com/card/skulltap.jpg +value=3.3 +rarity=C +type=Sorcery +cost={1}{B} +effect=PN draws two cards. +timing=main +requires_groovy_code=Bone Splinters diff --git a/release/Magarena/scripts/Tendrils_of_Despair.txt b/release/Magarena/scripts/Tendrils_of_Despair.txt new file mode 100644 index 0000000000..cbda8153ba --- /dev/null +++ b/release/Magarena/scripts/Tendrils_of_Despair.txt @@ -0,0 +1,10 @@ +name=Tendrils of Despair +url=http://magiccards.info/wl/en/25.html +image=http://mtgimage.com/card/tendrils%20of%20despair.jpg +value=3.868 +rarity=C +type=Sorcery +cost={B} +effect=Target opponent discards two cards. +timing=main +requires_groovy_code=Bone Splinters diff --git a/release/Magarena/scripts/Trash_for_Treasure.txt b/release/Magarena/scripts/Trash_for_Treasure.txt new file mode 100644 index 0000000000..4ac365853c --- /dev/null +++ b/release/Magarena/scripts/Trash_for_Treasure.txt @@ -0,0 +1,10 @@ +name=Trash for Treasure +url=http://magiccards.info/mi/en/109.html +image=http://mtgimage.com/card/trash%20for%20treasure.jpg +value=4.027 +rarity=R +type=Sorcery +cost={2}{R} +effect=Return target artifact card from your graveyard to the battlefield. +timing=main +requires_groovy_code=Kuldotha Rebirth diff --git a/release/Magarena/scripts/Vivisection.txt b/release/Magarena/scripts/Vivisection.txt new file mode 100644 index 0000000000..b8ed10ab81 --- /dev/null +++ b/release/Magarena/scripts/Vivisection.txt @@ -0,0 +1,10 @@ +name=Vivisection +url=http://magiccards.info/mbs/en/38.html +image=http://mtgimage.com/card/vivisection.jpg +value=2.706 +rarity=C +type=Sorcery +cost={3}{U} +effect=PN draws three cards. +timing=main +requires_groovy_code=Bone Splinters diff --git a/release/Magarena/scripts/Wicked_Reward.txt b/release/Magarena/scripts/Wicked_Reward.txt new file mode 100644 index 0000000000..57529fdedc --- /dev/null +++ b/release/Magarena/scripts/Wicked_Reward.txt @@ -0,0 +1,10 @@ +name=Wicked Reward +url=http://magiccards.info/vi/en/25.html +image=http://mtgimage.com/card/wicked%20reward.jpg +value=3.024 +rarity=C +type=Instant +cost={1}{B} +effect=Target creature gets +4/+2 until end of turn. +timing=removal +requires_groovy_code=Bone Splinters