forked from External/mage
* Fixed problems with win / lose restrictions in relation to empty draw condition (fixes #1681 #6553).
This commit is contained in:
parent
37f7389c17
commit
3aefbfb360
13 changed files with 107 additions and 34 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue