replace groovy code with ability in card script

master
melvin 2013-10-16 20:19:13 +08:00
parent d62dd8bc28
commit fa546b80a4
2 changed files with 1 additions and 33 deletions

View File

@ -1,32 +0,0 @@
[
new MagicPermanentActivation(
new MagicActivationHints(MagicTiming.Tapping),
"Untap"
) {
@Override
public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
return [new MagicTapEvent(source)];
}
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
return new MagicEvent(
source,
MagicTargetChoice.POS_TARGET_FOREST,
MagicTapTargetPicker.Untap,
this,
"Untap target Forest\$."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
event.processTargetPermanent(game,new MagicPermanentAction() {
public void doAction(final MagicPermanent forest) {
game.doAction(new MagicUntapAction(forest));
}
});
}
}
]

View File

@ -7,5 +7,5 @@ type=Creature
subtype=Elf,Druid
cost={G}
pt=1/1
ability=pay {T} Untap target Forest.
timing=main
requires_groovy_code