replace groovy code with ability in card script

master
melvin 2013-10-16 20:23:35 +08:00
parent 1cd86ea812
commit 7cb4f271d9
2 changed files with 2 additions and 34 deletions

View File

@ -1,32 +0,0 @@
[
new MagicPermanentActivation(
new MagicActivationHints(MagicTiming.Tapping),
"Tap"
) {
@Override
public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
return [new MagicPayManaCostEvent(source,"{2}{U}")];
}
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
return new MagicEvent(
source,
MagicTargetChoice.NEG_TARGET_CREATURE_WITH_FLYING,
MagicTapTargetPicker.Tap,
this,
"Tap target creature\$ with flying."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
event.processTargetPermanent(game,new MagicPermanentAction() {
public void doAction(final MagicPermanent creature) {
game.doAction(new MagicTapAction(creature,true));
}
});
}
}
]

View File

@ -7,6 +7,6 @@ type=Creature
subtype=Elemental
cost={4}{U}
pt=4/3
ability=flying
ability=flying;\
pay {2}{U} Tap target creature with flying.
timing=main
requires_groovy_code