replace groovy code with ability in card script

master
melvin 2013-10-21 21:11:43 +08:00
parent 873ed1c6af
commit d9053cc936
2 changed files with 2 additions and 30 deletions

View File

@ -1,28 +0,0 @@
[
new MagicPermanentActivation(
new MagicActivationHints(MagicTiming.Pump),
"Pump"
) {
@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 gets +1/+1 until end of turn."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
game.doAction(new MagicChangeTurnPTAction(event.getPermanent(),1,1));
}
}
]

View File

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