2013-05-18 00:22:55 -07:00
|
|
|
[
|
|
|
|
new MagicWhenOtherComesIntoPlayTrigger() {
|
2013-04-12 19:32:25 -07:00
|
|
|
@Override
|
|
|
|
public MagicEvent executeTrigger(
|
|
|
|
final MagicGame game,
|
|
|
|
final MagicPermanent permanent,
|
|
|
|
final MagicPermanent otherPermanent) {
|
|
|
|
return (otherPermanent != permanent &&
|
|
|
|
otherPermanent.isFriend(permanent) &&
|
|
|
|
otherPermanent.isCreature()) ?
|
|
|
|
new MagicEvent(
|
|
|
|
permanent,
|
|
|
|
this,
|
|
|
|
"SN gets +1/+0 and gains trample until end of turn."
|
|
|
|
):
|
|
|
|
MagicEvent.NONE;
|
|
|
|
}
|
|
|
|
@Override
|
2013-05-18 00:22:55 -07:00
|
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
2013-04-12 19:32:25 -07:00
|
|
|
final MagicPermanent permanent = event.getPermanent();
|
|
|
|
game.doAction(new MagicChangeTurnPTAction(permanent,1,0));
|
2013-07-06 23:57:29 -07:00
|
|
|
game.doAction(new MagicGainAbilityAction(permanent,MagicAbility.Trample));
|
2013-06-23 18:29:26 -07:00
|
|
|
}
|
2013-05-18 00:22:55 -07:00
|
|
|
}
|
|
|
|
]
|