magarena/release/Magarena/scripts/Scornful_AEther_Lich.groovy

31 lines
895 B
Groovy
Raw Normal View History

2013-05-13 23:11:31 -07:00
[
new MagicPermanentActivation(
new MagicActivationHints(MagicTiming.Main),
"Gains") {
@Override
public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
2013-05-13 23:11:31 -07:00
return [
2013-05-21 22:52:41 -07:00
new MagicPayManaCostEvent(source, "{W}{B}")
2013-05-13 23:11:31 -07:00
];
}
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source, final MagicPayedCost payedCost) {
return new MagicEvent(
source,
this,
"SN gains fear and vigilance until end of turn."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
game.doAction(new MagicGainAbilityAction(
2013-05-13 23:11:31 -07:00
event.getPermanent(),
[MagicAbility.Fear, MagicAbility.Vigilance]
));
}
}
]