magarena/release/Magarena/scripts/Argent_Sphinx.groovy

31 lines
1005 B
Groovy
Raw Normal View History

2013-05-25 22:42:15 -07:00
[
new MagicPermanentActivation(
[
MagicCondition.METALCRAFT_CONDITION
],
new MagicActivationHints(MagicTiming.Removal,1),
2013-05-25 22:42:15 -07:00
"Exile"
) {
@Override
public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
2013-05-25 22:42:15 -07:00
return [
new MagicPayManaCostEvent(source,"{U}"),
new MagicPlayAbilityEvent(source)
];
}
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
return new MagicEvent(
source,
this,
"Exile SN. Return it to the battlefield " +
2013-07-20 02:12:27 -07:00
"under your control at the beginning of the next end step."
2013-05-25 22:42:15 -07:00
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
game.doAction(new MagicExileUntilEndOfTurnAction(event.getPermanent()));
}
}
]