From 0fe8143a9cad4e9100f8db9ba69d2b0627c8059c Mon Sep 17 00:00:00 2001 From: L_J Date: Fri, 1 Jun 2018 14:28:02 +0000 Subject: [PATCH] Fixed Thieves' Auction when player leaves the game before it resolves (fixes #3648) --- Mage.Sets/src/mage/cards/t/ThievesAuction.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Mage.Sets/src/mage/cards/t/ThievesAuction.java b/Mage.Sets/src/mage/cards/t/ThievesAuction.java index e6eabfbd62b..9f78099bb3f 100644 --- a/Mage.Sets/src/mage/cards/t/ThievesAuction.java +++ b/Mage.Sets/src/mage/cards/t/ThievesAuction.java @@ -115,8 +115,12 @@ class ThievesAuctionEffect extends OneShotEffect { if (player.choose(Outcome.PutCardInPlay, exiledCards, target, game)) { // and puts it onto the battlefield tapped under their control. Card chosenCard = exiledCards.get(target.getFirstTarget(), game); - player.moveCards(chosenCard, Zone.BATTLEFIELD, source, game, true, false, false, null); + if (chosenCard != null) { + player.moveCards(chosenCard, Zone.BATTLEFIELD, source, game, true, false, false, null); + } exiledCards.remove(chosenCard); + } else { + break; } } // Repeat this process until all cards exiled this way have been chosen.