magarena/release/Magarena/scripts/Gristleback.groovy

27 lines
821 B
Groovy
Raw Normal View History

2013-05-18 03:35:47 -07:00
[
new MagicPermanentActivation(
new MagicActivationHints(MagicTiming.Removal),
2013-06-15 03:02:45 -07:00
"Life"
) {
2013-05-18 03:35:47 -07:00
@Override
public MagicEvent[] getCostEvent(final MagicPermanent source) {
return [new MagicSacrificeEvent(source)];
}
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source, final MagicPayedCost payedCost) {
return new MagicEvent(
source,
this,
"PN gains life equal to SN's power."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
game.doAction(new MagicChangeLifeAction(
event.getPlayer(),
event.getPermanent().getPower()
));
}
}
]