32 lines
1.1 KiB
Groovy
32 lines
1.1 KiB
Groovy
[
|
|
new MagicLandfallTrigger() {
|
|
@Override
|
|
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent played) {
|
|
return new MagicEvent(
|
|
permanent,
|
|
new MagicMayChoice(
|
|
MagicTargetChoice.NEG_TARGET_CREATURE
|
|
),
|
|
this,
|
|
"PN may\$ gain control of target creature\$ for as long as PN controls SN."
|
|
);
|
|
}
|
|
|
|
@Override
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
|
if (event.isYes()) {
|
|
event.processTargetPermanent(game, {
|
|
final MagicPermanent perm ->
|
|
game.doAction(new MagicAddStaticAction(
|
|
event.getPermanent(),
|
|
MagicStatic.ControlAsLongAsYouControlSource(
|
|
event.getPlayer(),
|
|
perm
|
|
)
|
|
));
|
|
});
|
|
}
|
|
}
|
|
}
|
|
]
|