replace groovy script with ability property

master
melvin 2013-10-16 11:45:58 +08:00
parent ca4fc3a0f6
commit b2288d5eda
2 changed files with 2 additions and 29 deletions

View File

@ -1,28 +0,0 @@
[
new MagicPermanentActivation(
new MagicActivationHints(MagicTiming.Removal),
"Life"
) {
@Override
public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
return [
new MagicSacrificePermanentEvent(
source,
MagicTargetChoice.SACRIFICE_SAPROLING
)
];
}
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
return new MagicEvent(
source,
this,
"PN gains 2 life."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
game.doAction(new MagicChangeLifeAction(event.getPlayer(),2));
}
}
]

View File

@ -7,5 +7,6 @@ type=Creature
subtype=Elf
cost={1}{G}
pt=0/2
ability=pay {SS} PN gains 2 life.
timing=main
requires_groovy_code=Thallid;Elvish_Farmer
requires_groovy_code=Thallid