magarena/release/Magarena/scripts/Morkrut_Banshee.groovy

25 lines
949 B
Groovy
Raw Normal View History

2013-05-18 04:43:52 -07:00
[
new MagicWhenComesIntoPlayTrigger() {
2013-04-12 19:32:25 -07:00
@Override
2013-06-19 07:23:35 -07:00
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent, final MagicPayedCost payedCost) {
2013-04-12 19:32:25 -07:00
return game.getCreatureDiedThisTurn() ?
new MagicEvent(
permanent,
MagicTargetChoice.TARGET_CREATURE,
new MagicWeakenTargetPicker(4,4),
this,
2013-05-18 04:43:52 -07:00
"Target creature\$ gets -4/-4 until end of turn."
2013-04-12 19:32:25 -07:00
) :
MagicEvent.NONE;
}
@Override
2013-05-18 04:43:52 -07:00
public void executeEvent(final MagicGame game, final MagicEvent event) {
2013-04-12 19:32:25 -07:00
event.processTargetPermanent(game,new MagicPermanentAction() {
public void doAction(final MagicPermanent creature) {
game.doAction(new MagicChangeTurnPTAction(creature,-4,-4));
}
});
}
2013-05-18 04:43:52 -07:00
}
]