22 lines
765 B
Groovy
22 lines
765 B
Groovy
[
|
|
new MagicWhenOtherComesIntoPlayTrigger() {
|
|
@Override
|
|
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent otherPermanent) {
|
|
return (otherPermanent != permanent &&
|
|
otherPermanent.isArtifact() &&
|
|
otherPermanent.isFriend(permanent)) ?
|
|
new MagicEvent(
|
|
permanent,
|
|
this,
|
|
"SN gets +2/+2 until end of turn"
|
|
) :
|
|
MagicEvent.NONE;
|
|
}
|
|
|
|
@Override
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
|
game.doAction(new MagicChangeTurnPTAction(event.getPermanent(),2,2));
|
|
}
|
|
}
|
|
]
|