36 lines
1.0 KiB
Groovy
36 lines
1.0 KiB
Groovy
[
|
|
new MagicPermanentActivation(
|
|
[MagicConditionFactory.ManaCost("{W}{B}")],
|
|
new MagicActivationHints(MagicTiming.Main),
|
|
"Gains") {
|
|
|
|
@Override
|
|
public MagicEvent[] getCostEvent(final MagicPermanent source) {
|
|
return [
|
|
new MagicPayManaCostEvent(
|
|
source,
|
|
source.getController(),
|
|
MagicManaCost.create("{W}{B}")
|
|
)
|
|
];
|
|
}
|
|
|
|
@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 MagicSetAbilityAction(
|
|
event.getPermanent(),
|
|
[MagicAbility.Fear, MagicAbility.Vigilance]
|
|
));
|
|
}
|
|
}
|
|
]
|