replace groovy script with ability property
parent
ca4fc3a0f6
commit
b2288d5eda
|
@ -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));
|
||||
}
|
||||
}
|
||||
]
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue