magarena/release/Magarena/scripts/Thalakos_Scout.groovy

27 lines
875 B
Groovy

[
new MagicPermanentActivation(
[MagicCondition.HAS_CARD_CONDITION],
new MagicActivationHints(MagicTiming.Removal),
"Return") {
@Override
public MagicEvent[] getCostEvent(final MagicPermanent source) {
return [
new MagicDiscardEvent(source,source.getController(),1,false)
];
}
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
return new MagicEvent(
source,
this,
"Return SN to its owner's hand."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
game.doAction(new MagicRemoveFromPlayAction(event.getPermanent(),MagicLocationType.OwnersHand));
}
}
]