replace groovy code with ability in card script

master
melvin 2013-10-20 18:15:41 +08:00
parent 1b08e9b9df
commit 8713bd12e5
2 changed files with 1 additions and 24 deletions

View File

@ -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));
}
});
}
}
]

View File

@ -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