forked from External/mage
[MAT] implemented Ob Nixilis, Captive Kingpin, refactored life lose and batches events (#11974)
This commit is contained in:
parent
0987e01f92
commit
50c75f05bd
8 changed files with 424 additions and 2 deletions
|
|
@ -2175,8 +2175,9 @@ public abstract class PlayerImpl implements Player, Serializable {
|
|||
+ (atCombat ? " at combat" : "") + CardUtil.getSourceLogName(game, " from ", needId, "", ""));
|
||||
}
|
||||
if (event.getAmount() > 0) {
|
||||
game.fireEvent(new GameEvent(GameEvent.EventType.LOST_LIFE,
|
||||
playerId, source, playerId, event.getAmount(), atCombat));
|
||||
LifeLostEvent lifeLostEvent = new LifeLostEvent(playerId, source, event.getAmount(), atCombat);
|
||||
game.fireEvent(lifeLostEvent);
|
||||
game.getState().addSimultaneousLifeLossEventToBatches(lifeLostEvent, game);
|
||||
}
|
||||
return event.getAmount();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue