magarena/release/Magarena/scripts/Wall_of_Blood.groovy

29 lines
788 B
Groovy
Raw Normal View History

2013-03-06 06:11:48 -08:00
[
2013-06-23 18:29:26 -07:00
new MagicPermanentActivation(
2013-06-14 22:23:20 -07:00
new MagicActivationHints(MagicTiming.Pump),
"Pump"
) {
2013-03-06 06:11:48 -08:00
@Override
public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
2013-03-06 06:11:48 -08:00
return [
2013-06-06 23:33:00 -07:00
new MagicPayLifeEvent(source,1),
2013-03-06 06:11:48 -08:00
];
}
@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));
}
}
]