Fixed Thieves' Auction when player leaves the game before it resolves (fixes #3648)

This commit is contained in:
L_J 2018-06-01 14:28:02 +00:00 committed by GitHub
parent ab3cd76d3e
commit 0fe8143a9c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.