* Dead Man's - Fixed that cards were exiled from controllers lib instead of enchanted objects owner library (fixes #4374).

This commit is contained in:
LevelX2 2018-01-08 17:11:43 +01:00
parent f3a37553a5
commit 9258621bf1

View file

@ -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<Card> cards = controller.getLibrary().getTopCards(game, amount);
Set<Card> cards = owner.getLibrary().getTopCards(game, amount);
if (!cards.isEmpty()) {
controller.moveCardsToExile(cards, source, game, true, source.getSourceId(), sourceObject.getLogName());
for (Card card : cards) {