mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
restore targeting arcs
This commit is contained in:
@@ -78,9 +78,6 @@ public enum TargetingOverlay {
|
||||
// positions have changed or not. Could perform better if
|
||||
// it checked for a state change. Doublestrike 28-09-12
|
||||
private void assembleArcs(Combat combat) {
|
||||
arcs.clear();
|
||||
cardPanels.clear();
|
||||
|
||||
//List<VField> fields = VMatchUI.SINGLETON_INSTANCE.getFieldViews();
|
||||
|
||||
switch (CDock.SINGLETON_INSTANCE.getArcState()) {
|
||||
@@ -201,6 +198,7 @@ public enum TargetingOverlay {
|
||||
});
|
||||
}
|
||||
|
||||
if ( null != combat ) {
|
||||
for (Card attackingCard : combat.getAttackers()) {
|
||||
temp = combat.getBlockers(attackingCard);
|
||||
for (Card blockingCard : temp) {
|
||||
@@ -211,6 +209,7 @@ public enum TargetingOverlay {
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// Work with all card panels currently visible
|
||||
|
||||
@@ -235,6 +234,7 @@ public enum TargetingOverlay {
|
||||
}
|
||||
|
||||
// Combat cards
|
||||
if ( null != combat )
|
||||
for (Card attackingCard : combat.getAttackers()) {
|
||||
temp = combat.getBlockers(attackingCard);
|
||||
for (Card blockingCard : temp) {
|
||||
@@ -339,7 +339,9 @@ public enum TargetingOverlay {
|
||||
if (overlaystate == 0) { return; }
|
||||
|
||||
// Arc drawing
|
||||
if( null != combat )
|
||||
arcs.clear();
|
||||
cardPanels.clear();
|
||||
|
||||
assembleArcs(combat);
|
||||
if (arcs.isEmpty()) { return; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user