magarena/release/Magarena/scripts/Righteousness.groovy

25 lines
861 B
Groovy
Raw Normal View History

2013-05-17 22:44:14 -07:00
[
new MagicSpellCardEvent() {
@Override
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
return new MagicEvent(
cardOnStack,
MagicTargetChoice.POS_TARGET_BLOCKING_CREATURE,
MagicPumpTargetPicker.create(),
this,
2013-05-17 22:56:18 -07:00
"Target blocking creature\$ gets +7/+7 until end of turn."
2013-05-17 22:44:14 -07:00
);
}
@Override
public void executeEvent(
final MagicGame game,
final MagicEvent event) {
event.processTargetPermanent(game,new MagicPermanentAction() {
public void doAction(final MagicPermanent creature) {
game.doAction(new MagicChangeTurnPTAction(creature,7,7));
}
});
}
}
]