mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
* Dead Man's - Fixed that cards were exiled from controllers lib instead of enchanted objects owner library (fixes #4374).
This commit is contained in:
parent
f3a37553a5
commit
9258621bf1
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue