diff --git a/release/Magarena/scripts/Dispatch.groovy b/release/Magarena/scripts/Dispatch.groovy new file mode 100644 index 0000000000..a21e4de834 --- /dev/null +++ b/release/Magarena/scripts/Dispatch.groovy @@ -0,0 +1,26 @@ +[ + new MagicSpellCardEvent() { + @Override + public MagicEvent getEvent(final MagicCardOnStack cardOnStack, final MagicPayedCost payedCost) { + return new MagicEvent( + cardOnStack, + MagicTargetChoice.NEG_TARGET_CREATURE, + MagicTapTargetPicker.Tap, + this, + "Tap target creature\$. " + + "If you control three or more artifacts, exile it." + ); + } + @Override + public void executeEvent(final MagicGame game, final MagicEvent event) { + event.processTargetPermanent(game,new MagicPermanentAction() { + public void doAction(final MagicPermanent permanent) { + game.doAction(new MagicTapAction(permanent,true)); + if (MagicCondition.METALCRAFT_CONDITION.accept(event.getSource())) { + game.doAction(new MagicRemoveFromPlayAction(permanent,MagicLocationType.Exile)); + } + } + }); + } + } +] diff --git a/release/Magarena/scripts/Dispatch.txt b/release/Magarena/scripts/Dispatch.txt new file mode 100644 index 0000000000..b4a24d7127 --- /dev/null +++ b/release/Magarena/scripts/Dispatch.txt @@ -0,0 +1,9 @@ +name=Dispatch +url=http://magiccards.info/nph/en/7.html +image=http://magiccards.info/scans/en/nph/7.jpg +value=3.968 +rarity=U +type=Instant +cost={W} +timing=tapping +requires_groovy_code \ No newline at end of file