mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 20:41:58 -08:00
[UI] Fixed only lands with two enchant lands were put aside
This commit is contained in:
parent
15dc313ffb
commit
14d899ea79
1 changed files with 2 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue