* Fixed problems with win / lose restrictions in relation to empty draw condition (fixes #1681 #6553).

This commit is contained in:
LevelX2 2020-05-26 16:38:01 +02:00
parent 37f7389c17
commit 3aefbfb360
13 changed files with 107 additions and 34 deletions

View file

@ -61,12 +61,6 @@ public class MageDrawAction extends MageAction {
if (!player.isTopCardRevealed() && numDrawn > 0) {
game.fireInformEvent(player.getLogName() + " draws " + CardUtil.numberToText(numDrawn, "a") + " card" + (numDrawn > 1 ? "s" : ""));
}
if (player.isEmptyDraw()) {
event = GameEvent.getEvent(GameEvent.EventType.EMPTY_DRAW, player.getId(), player.getId());
if (!game.replaceEvent(event)) {
game.doAction(new MageLoseGameAction(player, MageLoseGameAction.DRAW_REASON), sourceId);
}
}
setScore(player, score);
game.setStateCheckRequired();