2013-05-28 01:08:03 -07:00
|
|
|
[
|
|
|
|
new MagicSpellCardEvent() {
|
|
|
|
@Override
|
|
|
|
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
|
|
|
|
return new MagicEvent(
|
|
|
|
cardOnStack,
|
|
|
|
this,
|
2013-05-28 01:15:24 -07:00
|
|
|
"Return the top creature card\$ of your graveyard to the battlefield. " +
|
2013-06-23 18:29:26 -07:00
|
|
|
"That creature gains haste until end of turn. " +
|
|
|
|
"Exile it at the beginning of the next end step. " +
|
2013-06-18 08:07:47 -07:00
|
|
|
"If the buyback cost was payed, return SN to its owner's hand as it resolves."
|
2013-05-28 01:08:03 -07:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
|
|
|
final MagicPlayer player = event.getPlayer();
|
|
|
|
final List<MagicCard> targets =
|
|
|
|
game.filterCards(player,MagicTargetFilter.TARGET_CREATURE_CARD_FROM_GRAVEYARD);
|
|
|
|
if (targets.size() > 0) {
|
|
|
|
final MagicCard card = targets.get(targets.size()-1);
|
|
|
|
game.doAction(new MagicReanimateAction(
|
|
|
|
card,
|
2013-07-09 05:41:40 -07:00
|
|
|
player,
|
2013-07-10 05:01:39 -07:00
|
|
|
[MagicPlayMod.HASTE_UEOT, MagicPlayMod.REMOVE_AT_END_OF_TURN]
|
2013-05-28 01:08:03 -07:00
|
|
|
));
|
2013-06-23 18:29:26 -07:00
|
|
|
}
|
2013-05-28 01:08:03 -07:00
|
|
|
if (event.isBuyback()) {
|
|
|
|
game.doAction(new MagicChangeCardDestinationAction(event.getCardOnStack(), MagicLocationType.OwnersHand));
|
2013-06-23 18:29:26 -07:00
|
|
|
}
|
2013-05-28 01:08:03 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|