2013-05-18 00:34:25 -07:00
|
|
|
[
|
|
|
|
new MagicAtUpkeepTrigger() {
|
2013-04-12 19:32:25 -07:00
|
|
|
@Override
|
|
|
|
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPlayer upkeepPlayer) {
|
|
|
|
return permanent.isController(upkeepPlayer) ?
|
|
|
|
new MagicEvent(
|
|
|
|
permanent,
|
|
|
|
MagicTargetChoice.TARGET_PLAYER,
|
|
|
|
this,
|
2013-05-18 00:41:07 -07:00
|
|
|
"Target player\$ draws a card and loses 1 life."
|
2013-04-12 19:32:25 -07:00
|
|
|
):
|
|
|
|
MagicEvent.NONE;
|
|
|
|
}
|
|
|
|
@Override
|
2013-05-18 00:34:25 -07:00
|
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
2013-04-12 19:32:25 -07:00
|
|
|
event.processTargetPlayer(game,new MagicPlayerAction() {
|
|
|
|
public void doAction(final MagicPlayer player) {
|
2013-06-21 20:55:22 -07:00
|
|
|
game.doAction(new MagicDrawAction(player));
|
2013-04-12 19:32:25 -07:00
|
|
|
game.doAction(new MagicChangeLifeAction(player,-1));
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
2013-05-18 00:34:25 -07:00
|
|
|
}
|
|
|
|
]
|