magarena/release/Magarena/scripts/Gigadrowse.groovy

28 lines
953 B
Groovy

[
new MagicSpellCardEvent() {
@Override
public MagicEvent getEvent(final MagicCardOnStack cardOnStack, final MagicPayedCost payedCost) {
return new MagicEvent(
cardOnStack,
new MagicKickerChoice(
MagicTargetChoice.NEG_TARGET_PERMANENT,
MagicManaCost.create("{U}"),
true,
true
),
new MagicTapTargetPicker(true,false),
this,
"Tap target permanent\$."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
event.processTargetPermanent(game,new MagicPermanentAction() {
public void doAction(final MagicPermanent permanent) {
game.doAction(new MagicTapAction(permanent,true));
}
});
}
}
]