From 9258621bf1919a97230b6e7b7fb82a498886d0a4 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Mon, 8 Jan 2018 17:11:43 +0100 Subject: [PATCH] * Dead Man's - Fixed that cards were exiled from controllers lib instead of enchanted objects owner library (fixes #4374). --- Mage.Sets/src/mage/cards/d/DeadMansChest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mage.Sets/src/mage/cards/d/DeadMansChest.java b/Mage.Sets/src/mage/cards/d/DeadMansChest.java index b76c47f001..a1a00a68cc 100644 --- a/Mage.Sets/src/mage/cards/d/DeadMansChest.java +++ b/Mage.Sets/src/mage/cards/d/DeadMansChest.java @@ -122,7 +122,7 @@ class DeadMansChestEffect extends OneShotEffect { Player owner = game.getPlayer(attachedTo.getOwnerId()); int amount = attachedTo.getPower().getValue(); if (owner != null && amount > 0) { - Set cards = controller.getLibrary().getTopCards(game, amount); + Set cards = owner.getLibrary().getTopCards(game, amount); if (!cards.isEmpty()) { controller.moveCardsToExile(cards, source, game, true, source.getSourceId(), sourceObject.getLogName()); for (Card card : cards) {