replace groovy code with card script

master
melvin 2013-10-31 10:54:20 +08:00
parent 4199505e6a
commit e799c0e7b3
2 changed files with 1 additions and 29 deletions

View File

@ -1,28 +0,0 @@
[
new MagicPermanentActivation(
new MagicActivationHints(MagicTiming.Pump),
"Flying"
) {
@Override
public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
return [
new MagicSacrificePermanentEvent(
source,
MagicTargetChoice.SACRIFICE_CREATURE
)
];
}
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
return new MagicEvent(
source,
this,
"SN gains flying until end of turn."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
game.doAction(new MagicGainAbilityAction(event.getPermanent(),MagicAbility.Flying));
}
}
]

View File

@ -7,5 +7,5 @@ type=Creature
subtype=Insect,Horror
cost={1}{B}
pt=2/1
ability=pay Sacrifice a creature: SN gains flying until end of turn.
timing=main
requires_groovy_code