25 lines
899 B
Groovy
25 lines
899 B
Groovy
[
|
|
new MagicWhenComesIntoPlayTrigger() {
|
|
@Override
|
|
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent, final MagicPayedCost payedCost) {
|
|
return new MagicEvent(
|
|
permanent,
|
|
new MagicMayChoice(MagicTargetChoice.NEG_TARGET_CREATURE),
|
|
MagicTapTargetPicker.Tap,
|
|
this,
|
|
"PN may\$ tap target creature\$."
|
|
);
|
|
}
|
|
@Override
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
|
if (event.isYes()) {
|
|
event.processTargetPermanent(game,new MagicPermanentAction() {
|
|
public void doAction(final MagicPermanent creature) {
|
|
game.doAction(new MagicTapAction(creature,true));
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
]
|