mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
- Lands that become creatures will now always be moved to the front row.
This commit is contained in:
@@ -68,7 +68,7 @@ public class PlayArea extends CardPanelContainer implements CardPanelMouseListen
|
|||||||
outerLoop:
|
outerLoop:
|
||||||
//
|
//
|
||||||
for (CardPanel panel : cardPanels) {
|
for (CardPanel panel : cardPanels) {
|
||||||
if (!panel.gameCard.isLand()) continue;
|
if (!panel.gameCard.isLand() || panel.gameCard.isCreature()) continue;
|
||||||
|
|
||||||
int insertIndex = -1;
|
int insertIndex = -1;
|
||||||
|
|
||||||
@@ -76,7 +76,7 @@ public class PlayArea extends CardPanelContainer implements CardPanelMouseListen
|
|||||||
for (int i = 0, n = allLands.size(); i < n; i++) {
|
for (int i = 0, n = allLands.size(); i < n; i++) {
|
||||||
Stack stack = allLands.get(i);
|
Stack stack = allLands.get(i);
|
||||||
CardPanel firstPanel = stack.get(0);
|
CardPanel firstPanel = stack.get(0);
|
||||||
if (firstPanel.gameCard.getName().equals(panel.gameCard.getName()) && !panel.gameCard.isCreature()) {
|
if (firstPanel.gameCard.getName().equals(panel.gameCard.getName()) ) {
|
||||||
if (!firstPanel.attachedPanels.isEmpty() || firstPanel.gameCard.isEnchanted()) {
|
if (!firstPanel.attachedPanels.isEmpty() || firstPanel.gameCard.isEnchanted()) {
|
||||||
// Put this land to the left of lands with the same name and attachments.
|
// Put this land to the left of lands with the same name and attachments.
|
||||||
insertIndex = i;
|
insertIndex = i;
|
||||||
|
|||||||
Reference in New Issue
Block a user