magarena/release/Magarena/scripts/Colossus_of_Sardia.groovy

30 lines
892 B
Groovy

[
new MagicPermanentActivation(
[
MagicCondition.YOUR_UPKEEP_CONDITION,
],
new MagicActivationHints(MagicTiming.Tapping),
"Untap"
) {
@Override
public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
return [
new MagicPayManaCostEvent(source,"{9}"),
new MagicUntapConditionsEvent(source,this)
];
}
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
return new MagicEvent(
source,
this,
"Untap SN."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
game.doAction(new MagicUntapAction(event.getPermanent()));
}
}
]