From 383ab959d351edda63cda77cf7e78e520ba78c4b Mon Sep 17 00:00:00 2001 From: Oleg Agafonov Date: Thu, 2 Jan 2020 04:52:01 +0400 Subject: [PATCH] * Lim-Dul's Vault - fixed that AI can freeze the game; --- Mage.Sets/src/mage/cards/l/LimDulsVault.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Mage.Sets/src/mage/cards/l/LimDulsVault.java b/Mage.Sets/src/mage/cards/l/LimDulsVault.java index 869e996cfe0..41319e0dec1 100644 --- a/Mage.Sets/src/mage/cards/l/LimDulsVault.java +++ b/Mage.Sets/src/mage/cards/l/LimDulsVault.java @@ -1,7 +1,5 @@ - package mage.cards.l; -import java.util.UUID; import mage.abilities.Ability; import mage.abilities.effects.OneShotEffect; import mage.cards.CardImpl; @@ -13,8 +11,9 @@ import mage.constants.Outcome; import mage.game.Game; import mage.players.Player; +import java.util.UUID; + /** - * * @author LevelX2 */ public final class LimDulsVault extends CardImpl { @@ -65,6 +64,7 @@ class LimDulsVaultEffect extends OneShotEffect { do { Cards cards = new CardsImpl(player.getLibrary().getTopCards(game, 5)); player.lookAtCards(source, null, cards, game); + doAgain = player.chooseUse(outcome, "Pay 1 life and look at the next 5 cards?", source, game); if (doAgain) { player.loseLife(1, game, false); @@ -73,7 +73,7 @@ class LimDulsVaultEffect extends OneShotEffect { player.shuffleLibrary(source, game); player.putCardsOnTopOfLibrary(cards, game, source, true); } - } while (doAgain); + } while (doAgain && player.isHuman()); // AI must stop using it as infinite return true; }