From 14d899ea79c401a2223c7af47460566afee65874 Mon Sep 17 00:00:00 2001 From: magenoxx Date: Thu, 7 Aug 2014 09:07:08 +0400 Subject: [PATCH] [UI] Fixed only lands with two enchant lands were put aside --- .../src/main/java/org/mage/plugins/card/CardPluginImpl.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Mage.Client/src/main/java/org/mage/plugins/card/CardPluginImpl.java b/Mage.Client/src/main/java/org/mage/plugins/card/CardPluginImpl.java index 2dbae11bd72..3bb19eff8e5 100644 --- a/Mage.Client/src/main/java/org/mage/plugins/card/CardPluginImpl.java +++ b/Mage.Client/src/main/java/org/mage/plugins/card/CardPluginImpl.java @@ -129,13 +129,12 @@ public class CardPluginImpl implements CardPlugin { MagePermanent firstPanel = stack.get(0); if (firstPanel.getOriginal().getName().equals(permanent.getOriginal().getName())) { - if (!empty(firstPanel.getLinks())) { + if (!empty(firstPanel.getOriginalPermanent().getAttachments())) { // Put this land to the left of lands with the same name and attachments. insertIndex = i; break; } - - if (!empty(permanent.getLinks()) || stack.size() == landStackMax) { + if (!empty(permanent.getOriginalPermanent().getAttachments()) || stack.size() == landStackMax) { // If this land has attachments or the stack is full, put it to the right. insertIndex = i + 1; continue;