[MAT] implemented Ob Nixilis, Captive Kingpin, refactored life lose and batches events (#11974)

This commit is contained in:
jimga150 2024-03-21 11:53:45 -04:00 committed by GitHub
parent 0987e01f92
commit 50c75f05bd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 424 additions and 2 deletions

View file

@ -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();
}