magarena/release/Magarena/scripts/Stun.groovy

24 lines
928 B
Groovy
Raw Normal View History

2013-05-18 06:03:25 -07:00
[
new MagicSpellCardEvent() {
@Override
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
return new MagicEvent(
cardOnStack,
MagicTargetChoice.NEG_TARGET_CREATURE,
new MagicNoCombatTargetPicker(false,true,false),
this,
"Target creature\$ can't block this turn. Draw a card."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
event.processTargetPermanent(game,new MagicPermanentAction() {
public void doAction(final MagicPermanent creature) {
game.doAction(new MagicGainAbilityAction(creature,MagicAbility.CannotBlock));
game.doAction(new MagicDrawAction(event.getPlayer()));
2013-05-18 06:03:25 -07:00
}
});
}
}
]