replace groovy code with ability in card script
parent
1cd86ea812
commit
7cb4f271d9
|
@ -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));
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
]
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue