23 lines
903 B
Groovy
23 lines
903 B
Groovy
[
|
|
new MagicWhenComesIntoPlayTrigger() {
|
|
@Override
|
|
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent, final MagicPayedCost payedCost) {
|
|
return new MagicEvent(
|
|
permanent,
|
|
MagicTargetChoice.RED_OR_GREEN_CREATURE_YOU_CONTROL,
|
|
MagicBounceTargetPicker.create(),
|
|
this,
|
|
"Return a red or green creature you control\$ to its owner's hand."
|
|
);
|
|
}
|
|
@Override
|
|
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));
|
|
}
|
|
});
|
|
}
|
|
}
|
|
]
|