mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
@@ -697,7 +697,15 @@ public class PlayArea extends CardPanelContainer implements CardPanelMouseListen
|
||||
|
||||
CardPanel attachedToPanel;
|
||||
if (card.getAttachedTo() != null) {
|
||||
if (card != card.getAttachedTo().getAttachedTo())
|
||||
attachedToPanel = getCardPanel(card.getAttachedTo().getId());
|
||||
else {
|
||||
toPanel.getAttachedPanels().remove(getCardPanel(card.getAttachedTo().getId()));
|
||||
CardPanel panel = getCardPanel(card.getAttachedTo().getId());
|
||||
if (panel != null)
|
||||
panel.setAttachedToPanel(null);
|
||||
attachedToPanel = null;
|
||||
}
|
||||
} else {
|
||||
attachedToPanel = null;
|
||||
}
|
||||
|
||||
@@ -77,6 +77,9 @@ public class TargetingOverlay {
|
||||
drawArrow(g, endpoints.get(attachedTo.getId()), endpoints.get(c.getId()), ArcConnection.Friends);
|
||||
}
|
||||
}
|
||||
if (null != attachedTo && c == attachedTo.getAttachedTo()) {
|
||||
drawArrow(g, endpoints.get(attachedTo.getId()), endpoints.get(c.getId()), ArcConnection.Friends);
|
||||
}
|
||||
if (null != attachedCards) {
|
||||
for (final CardView enc : attachedCards) {
|
||||
if (enc.getController() != null && !enc.getController().equals(c.getController())) {
|
||||
|
||||
@@ -300,7 +300,12 @@ public abstract class VCardDisplayArea extends VDisplayArea implements ActivateH
|
||||
}
|
||||
|
||||
if (card.getAttachedTo() != null) {
|
||||
if (card != card.getAttachedTo().getAttachedTo())
|
||||
setAttachedToPanel(CardAreaPanel.get(card.getAttachedTo()));
|
||||
else {
|
||||
attachedPanels.remove(CardAreaPanel.get(card.getAttachedTo()));
|
||||
setAttachedToPanel(null);
|
||||
}
|
||||
}
|
||||
else {
|
||||
setAttachedToPanel(null);
|
||||
|
||||
Reference in New Issue
Block a user