magarena/release/Magarena/scripts/Azimaet_Drake.groovy

31 lines
956 B
Groovy
Raw Normal View History

2013-05-24 07:25:59 -07:00
[
new MagicPermanentActivation(
[
MagicCondition.ABILITY_ONCE_CONDITION,
MagicConditionFactory.ManaCost("{U}")
],
new MagicActivationHints(MagicTiming.Pump),
"Pump"
) {
@Override
public MagicEvent[] getCostEvent(final MagicPermanent source) {
return [
new MagicPayManaCostEvent(source,"{U}"),
new MagicPlayAbilityEvent(source)
];
}
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
return new MagicEvent(
source,
this,
"SN gets +1/+0 until end of turn."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
game.doAction(new MagicChangeTurnPTAction(event.getPermanent(),1,0));
}
}
]