magarena/release/Magarena/scripts/Thalakos_Drifters.groovy

27 lines
853 B
Groovy

[
new MagicPermanentActivation(
new MagicActivationHints(MagicTiming.Pump,1),
"Shadow"
) {
@Override
public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
return [
new MagicDiscardEvent(source),
new MagicPlayAbilityEvent(source)
];
}
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
return new MagicEvent(
source,
this,
"SN gains shadow until end of turn."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
game.doAction(new MagicGainAbilityAction(event.getPermanent(),MagicAbility.Shadow));
}
}
]