move Colossus of Sardia from incomplete to scripts by adding untap ability as groovy script

master
melvin 2013-01-13 21:37:23 +08:00
parent 8bda6e5a8e
commit ec769c237f
2 changed files with 33 additions and 1 deletions

View File

@ -0,0 +1,31 @@
[
new MagicPermanentActivation(
[
MagicCondition.TAPPED_CONDITION,
MagicCondition.YOUR_UPKEEP_CONDITION,
MagicManaCost.NINE.getCondition(),
new MagicSingleActivationCondition()
],
new MagicActivationHints(MagicTiming.Tapping),
"Untap") {
@Override
public MagicEvent[] getCostEvent(final MagicPermanent source) {
return [new MagicPayManaCostEvent(source,source.getController(),MagicManaCost.NINE)];
}
@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,
final Object[] choiceResults) {
game.doAction(new MagicUntapAction(event.getPermanent()));
}
}
]

View File

@ -7,5 +7,6 @@ type=Artifact,Creature
subtype=Golem
cost={9}
pt=9/9
ability=trample,doesn't untap during untap step,untap {9} during upkeep
ability=trample,doesn't untap during untap step
timing=main
requires_groovy_code