From a7e0ee8e7095387e689a99608cb473f7c18b083e Mon Sep 17 00:00:00 2001 From: melvin Date: Mon, 4 Mar 2013 14:38:32 +0800 Subject: [PATCH] added Sphinx's Revelation --- .../scripts/Sphinx_s_Revelation.groovy | 22 +++++++++++++++++++ .../Magarena/scripts/Sphinx_s_Revelation.txt | 9 ++++++++ 2 files changed, 31 insertions(+) create mode 100644 release/Magarena/scripts/Sphinx_s_Revelation.groovy create mode 100644 release/Magarena/scripts/Sphinx_s_Revelation.txt diff --git a/release/Magarena/scripts/Sphinx_s_Revelation.groovy b/release/Magarena/scripts/Sphinx_s_Revelation.groovy new file mode 100644 index 0000000000..021b7f7ceb --- /dev/null +++ b/release/Magarena/scripts/Sphinx_s_Revelation.groovy @@ -0,0 +1,22 @@ +[ + new MagicSpellCardEvent() { + @Override + public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) { + final int amount=payedCost.getX(); + return new MagicEvent( + cardOnStack, + this, + "PN gains " + amount + " life and draw " + amount + " cards." + ); + } + @Override + public void executeEvent( + final MagicGame game, + final MagicEvent event, + final Object[] choiceResults) { + final int amount = event.getCardOnStack().getX(); + game.doAction(new MagicChangeLifeAction(event.getPlayer(), amount)); + game.doAction(new MagicDrawAction(event.getPlayer(), amount)); + } + } +] diff --git a/release/Magarena/scripts/Sphinx_s_Revelation.txt b/release/Magarena/scripts/Sphinx_s_Revelation.txt new file mode 100644 index 0000000000..91ec503f53 --- /dev/null +++ b/release/Magarena/scripts/Sphinx_s_Revelation.txt @@ -0,0 +1,9 @@ +name=Sphinx's Revelation +url=http://magiccards.info/rtr/en/200.html +image=http://magiccards.info/scans/en/rtr/200.jpg +value=4.474 +rarity=M +type=Instant +cost={X}{W}{U}{U} +timing=main +requires_groovy_code