magarena/release/Magarena/scripts/Affa_Guard_Hound.groovy

23 lines
832 B
Groovy
Raw Normal View History

2013-04-01 06:51:48 -07:00
[
new MagicWhenComesIntoPlayTrigger() {
2012-06-17 05:19:08 -07:00
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent, final MagicPlayer player) {
return new MagicEvent(
permanent,
MagicTargetChoice.TARGET_CREATURE,
MagicPumpTargetPicker.create(),
this,
2013-04-01 07:28:22 -07:00
"Target creature\$ gets +0/+3 until end of turn."
);
2012-06-17 05:19:08 -07:00
}
@Override
2013-03-22 22:00:53 -07:00
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,0,3));
}
2012-06-17 05:19:08 -07:00
});
}
2013-04-01 06:51:48 -07:00
}
]