2013-04-12 19:58:51 -07:00
|
|
|
[
|
|
|
|
new MagicWhenComesIntoPlayTrigger() {
|
|
|
|
@Override
|
2013-06-19 07:23:35 -07:00
|
|
|
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent, final MagicPayedCost payedCost) {
|
2013-04-12 19:58:51 -07:00
|
|
|
return new MagicEvent(
|
|
|
|
permanent,
|
|
|
|
MagicTargetChoice.TARGET_OPPONENT,
|
|
|
|
this,
|
|
|
|
"Target opponent\$ loses 2 life and PN gains 2 life."
|
|
|
|
);
|
|
|
|
}
|
|
|
|
@Override
|
2013-06-07 01:53:06 -07:00
|
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
2013-04-12 19:58:51 -07:00
|
|
|
event.processTargetPlayer(game,new MagicPlayerAction() {
|
|
|
|
public void doAction(final MagicPlayer player) {
|
|
|
|
game.doAction(new MagicChangeLifeAction(player,-2));
|
|
|
|
game.doAction(new MagicChangeLifeAction(event.getPlayer(),2));
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|