magarena/release/Magarena/scripts/Azure_Mage.groovy

28 lines
807 B
Groovy
Raw Normal View History

2013-05-18 06:22:47 -07:00
[
new MagicPermanentActivation(
[MagicConditionFactory.ManaCost("{3}{U}")],
new MagicActivationHints(MagicTiming.Draw,true),
"Draw"
) {
@Override
public MagicEvent[] getCostEvent(final MagicPermanent source) {
2013-05-21 19:54:06 -07:00
return [new MagicPayManaCostEvent(source,"{3}{U}")];
2013-05-18 06:22:47 -07:00
}
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
return new MagicEvent(
source,
this,
"PN draws a card."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
game.doAction(new MagicDrawAction(event.getPlayer(),1));
}
}
]