24 lines
929 B
Groovy
24 lines
929 B
Groovy
|
[
|
||
|
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 MagicSetAbilityAction(creature,MagicAbility.CannotBlock));
|
||
|
game.doAction(new MagicDrawAction(event.getPlayer(),1));
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
}
|
||
|
]
|