From 8713bd12e5b5e60cf393de28671cf5fc4c4055e5 Mon Sep 17 00:00:00 2001 From: melvin Date: Sun, 20 Oct 2013 18:15:41 +0800 Subject: [PATCH] replace groovy code with ability in card script --- .../Magarena/scripts/Withstand_Death.groovy | 23 ------------------- release/Magarena/scripts/Withstand_Death.txt | 2 +- 2 files changed, 1 insertion(+), 24 deletions(-) delete mode 100644 release/Magarena/scripts/Withstand_Death.groovy diff --git a/release/Magarena/scripts/Withstand_Death.groovy b/release/Magarena/scripts/Withstand_Death.groovy deleted file mode 100644 index 1d589de7d8..0000000000 --- a/release/Magarena/scripts/Withstand_Death.groovy +++ /dev/null @@ -1,23 +0,0 @@ -[ - new MagicSpellCardEvent() { - @Override - public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) { - return new MagicEvent( - cardOnStack, - MagicTargetChoice.POS_TARGET_CREATURE, - MagicIndestructibleTargetPicker.create(), - this, - "Target creature\$ gains indestructible until end of turn." - ); - } - - @Override - public void executeEvent(final MagicGame game, final MagicEvent event) { - event.processTargetPermanent(game,new MagicPermanentAction() { - public void doAction(final MagicPermanent creature) { - game.doAction(new MagicGainAbilityAction(creature,MagicAbility.Indestructible)); - } - }); - } - } -] diff --git a/release/Magarena/scripts/Withstand_Death.txt b/release/Magarena/scripts/Withstand_Death.txt index 608c680243..a2477ac5f9 100644 --- a/release/Magarena/scripts/Withstand_Death.txt +++ b/release/Magarena/scripts/Withstand_Death.txt @@ -5,5 +5,5 @@ value=3.331 rarity=C type=Instant cost={G} +effect=Target creature gains indestructible until end of turn. timing=pump -requires_groovy_code