magarena/release/Magarena/scripts/Wall_of_Blood.groovy

29 lines
856 B
Groovy
Raw Normal View History

2013-03-06 06:11:48 -08:00
[
new MagicPermanentActivation(
[MagicCondition.ONE_LIFE_CONDITION],
new MagicActivationHints(MagicTiming.Pump),
"Pump") {
@Override
public MagicEvent[] getCostEvent(final MagicPermanent source) {
return [
new MagicPayLifeEvent(source,source.getController(),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
2013-03-22 22:00:53 -07:00
public void executeEvent(final MagicGame game,final MagicEvent event) {
2013-03-06 06:11:48 -08:00
game.doAction(new MagicChangeTurnPTAction(event.getPermanent(), 1, 1));
}
}
]