magarena/release/Magarena/scripts/Mark_of_Mutiny.groovy

27 lines
1.2 KiB
Groovy

[
new MagicSpellCardEvent() {
@Override
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
return new MagicEvent(
cardOnStack,
MagicTargetChoice.NEG_TARGET_CREATURE,
MagicExileTargetPicker.create(),
this,
"Gain control of target creature\$ until end of turn. Put a +1/+1 counter on it and untap it. " +
"That creature gains haste until end of turn."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
event.processTargetPermanent(game,new MagicPermanentAction() {
public void doAction(final MagicPermanent creature) {
game.doAction(new MagicGainControlAction(event.getPlayer(),creature,MagicStatic.UntilEOT));
game.doAction(new MagicChangeCountersAction(creature,MagicCounterType.PlusOne,1,true));
game.doAction(new MagicUntapAction(creature));
game.doAction(new MagicGainAbilityAction(creature,MagicAbility.Haste));
}
});
}
}
]