25 lines
959 B
Groovy
25 lines
959 B
Groovy
[
|
|
new MagicWhenAttacksTrigger() {
|
|
@Override
|
|
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent creature) {
|
|
return (permanent == creature) ?
|
|
new MagicEvent(
|
|
permanent,
|
|
MagicTargetChoice.TARGET_CREATURE_YOUR_OPPONENT_CONTROLS,
|
|
new MagicTapTargetPicker(true,false),
|
|
this,
|
|
"Tap target creature\$ defending player controls."
|
|
):
|
|
MagicEvent.NONE;
|
|
}
|
|
@Override
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
|
event.processTargetPermanent(game,new MagicPermanentAction() {
|
|
public void doAction(final MagicPermanent creature) {
|
|
game.doAction(new MagicTapAction(creature,true));
|
|
}
|
|
});
|
|
}
|
|
}
|
|
]
|