magarena/release/Magarena/scripts/Shivan_Wurm.groovy

23 lines
902 B
Groovy
Raw Normal View History

2013-05-18 00:36:19 -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.RED_OR_GREEN_CREATURE_YOU_CONTROL,
MagicBounceTargetPicker.getInstance(),
this,
2013-05-18 00:36:19 -07:00
"Return a red or green creature you control\$ to its owner's hand."
);
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 MagicRemoveFromPlayAction(creature,MagicLocationType.OwnersHand));
}
2012-06-17 05:19:08 -07:00
});
}
2013-05-18 00:36:19 -07:00
}
]