28 lines
1.0 KiB
Groovy
28 lines
1.0 KiB
Groovy
[
|
|
new MagicWhenComesIntoPlayTrigger() {
|
|
@Override
|
|
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent, final MagicPayedCost payedCost) {
|
|
return new MagicEvent(
|
|
permanent,
|
|
MagicTargetChoice.TARGET_CREATURE_CARD_FROM_OPPONENTS_GRAVEYARD,
|
|
MagicGraveyardTargetPicker.PutOntoBattlefield,
|
|
this,
|
|
"Put target creature card\$ in an opponent's graveyard onto the battlefield under your control. "+
|
|
"It has haste. At the end of your turn, exile it."
|
|
);
|
|
}
|
|
|
|
@Override
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
|
event.processTargetCard(game, {
|
|
final MagicCard card ->
|
|
game.doAction(new MagicReanimateAction(
|
|
card,
|
|
event.getPlayer(),
|
|
[MagicPlayMod.HASTE, MagicPlayMod.EXILE_AT_END_OF_YOUR_TURN]
|
|
));
|
|
});
|
|
}
|
|
}
|
|
]
|