1
0
Fork 0
mirror of https://github.com/correl/mage.git synced 2025-04-09 09:11:05 -09:00

* Game: fixed game freeze on mulligan phase and disconnected player;

This commit is contained in:
Oleg Agafonov 2020-07-01 11:44:27 +04:00
parent 82347be782
commit 7e9d4417f6

View file

@ -102,7 +102,7 @@ public class LondonMulligan extends Mulligan {
}
player.drawCards(numCards, null, game);
while (player.getHand().size() > newHandSize) {
while (player.canRespond() && player.getHand().size() > newHandSize) {
Target target = new TargetCardInHand(new FilterCard("card (" + (player.getHand().size() - newHandSize) + " more) to put on the bottom of your library"));
player.chooseTarget(Outcome.Discard, target, null, game);
player.putCardsOnBottomOfLibrary(new CardsImpl(target.getTargets()), game, null, true);