magarena/release/Magarena/scripts/Wall_of_Blood.groovy

29 lines
788 B
Groovy

[
new MagicPermanentActivation(
new MagicActivationHints(MagicTiming.Pump),
"Pump"
) {
@Override
public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
return [
new MagicPayLifeEvent(source,1),
];
}
@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));
}
}
]