magarena/release/Magarena/scripts/Stingscourger.groovy

30 lines
1.0 KiB
Groovy
Raw Normal View History

2013-05-18 19:32:28 -07:00
[
new MagicWhenComesIntoPlayTrigger() {
2013-04-12 19:32:25 -07:00
@Override
public MagicEvent executeTrigger(
final MagicGame game,
final MagicPermanent permanent,
2013-06-19 07:23:35 -07:00
final MagicPayedCost payedCost) {
2013-04-12 19:32:25 -07:00
return new MagicEvent(
permanent,
MagicTargetChoice.TARGET_CREATURE_YOUR_OPPONENT_CONTROLS,
2013-06-30 01:53:17 -07:00
MagicBounceTargetPicker.create(),
2013-04-12 19:32:25 -07:00
this,
2013-05-18 19:32:28 -07:00
"Return target creature\$ your opponent " +
2013-04-12 19:32:25 -07:00
"controls to its owner's hand."
);
}
@Override
2013-06-15 06:13:32 -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 MagicRemoveFromPlayAction(
2013-05-18 19:32:28 -07:00
creature,
MagicLocationType.OwnersHand
));
2013-04-12 19:32:25 -07:00
}
});
}
2013-05-18 19:32:28 -07:00
}
]