magarena/release/Magarena/scripts/Arbalest_Elite.groovy

36 lines
1.4 KiB
Groovy
Raw Normal View History

2013-05-28 02:35:14 -07:00
[
new MagicPermanentActivation(
new MagicActivationHints(MagicTiming.Removal),
"Damage"
) {
@Override
public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
2013-05-28 02:35:14 -07:00
return [new MagicPayManaCostTapEvent(source,"{2}{W}")];
}
@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
return new MagicEvent(
source,
MagicTargetChoice.NEG_TARGET_ATTACKING_OR_BLOCKING_CREATURE,
new MagicDamageTargetPicker(3),
this,
"SN deals 3 damage to target attacking or blocking creature\$. " +
"SN doesn't untap during your next untap step."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
event.processTargetPermanent(game,new MagicPermanentAction() {
public void doAction(final MagicPermanent creature) {
final MagicDamage damage=new MagicDamage(event.getPermanent(),creature,3);
game.doAction(new MagicDealDamageAction(damage));
game.doAction(MagicChangeStateAction.Set(
event.getPermanent(),
MagicPermanentState.DoesNotUntapDuringNext
));
2013-05-28 02:35:14 -07:00
}
});
}
}
]