magarena/release/Magarena/scripts/Dreadwing.groovy

29 lines
873 B
Groovy
Raw Normal View History

[
new MagicPermanentActivation(
[
MagicConditionFactory.ManaCost("{1}{U}{R}")
],
new MagicActivationHints(MagicTiming.Pump),
"Pump") {
@Override
public MagicEvent[] getCostEvent(final MagicPermanent source) {
2013-05-21 19:54:06 -07:00
return [new MagicPayManaCostEvent(source,"{1}{U}{R}")];
}
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
return new MagicEvent(
source,
this,
"SN gets +3/+0 and gains flying until end of turn."
);
}
@Override
public void executeEvent(
final MagicGame game,
2013-03-22 22:00:53 -07:00
final MagicEvent event) {
game.doAction(new MagicChangeTurnPTAction(event.getPermanent(),3,0));
game.doAction(new MagicSetAbilityAction(event.getPermanent(),MagicAbility.Flying));
}
}
]