mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
- Targeting Overlay: targeting arrows will now be shown for equipments equipping permanents currently under opponent's control (for those rare cases when e.g. an equipped creature gets Switcheroo'd for something else).
This commit is contained in:
@@ -127,7 +127,9 @@ public enum TargetingOverlay {
|
||||
Card c = activePanel.getCard();
|
||||
|
||||
Card enchanting = c.getEnchantingCard();
|
||||
Card equipping = c.getEquippingCard();
|
||||
List<Card> enchantedBy = c.getEnchantedBy();
|
||||
List<Card> equippedBy = c.getEquippedBy();
|
||||
Card paired = c.getPairedWith();
|
||||
|
||||
if (null != enchanting) {
|
||||
@@ -139,6 +141,15 @@ public enum TargetingOverlay {
|
||||
}
|
||||
}
|
||||
|
||||
if (null != equipping) {
|
||||
if (!equipping.getController().equals(c.getController())) {
|
||||
arcs.add(new Point[] {
|
||||
endpoints.get(equipping.getUniqueNumber()),
|
||||
endpoints.get(c.getUniqueNumber())
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
if (null != enchantedBy) {
|
||||
for (Card enc : enchantedBy) {
|
||||
if (!enc.getController().equals(c.getController())) {
|
||||
@@ -150,6 +161,17 @@ public enum TargetingOverlay {
|
||||
}
|
||||
}
|
||||
|
||||
if (null != equippedBy) {
|
||||
for (Card eq : equippedBy) {
|
||||
if (!eq.getController().equals(c.getController())) {
|
||||
arcs.add(new Point[] {
|
||||
endpoints.get(c.getUniqueNumber()),
|
||||
endpoints.get(eq.getUniqueNumber())
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (null != paired) {
|
||||
arcs.add(new Point[] {
|
||||
endpoints.get(paired.getUniqueNumber()),
|
||||
|
||||
Reference in New Issue
Block a user