From ded864f851bddc4b29f8d2de6eca19033552a191 Mon Sep 17 00:00:00 2001 From: IllianiCBT Date: Thu, 21 Nov 2024 12:41:21 -0600 Subject: [PATCH] Fixed deployment issue for scenarios without a deployment date. Updated the condition to exclude strategic objectives when checking for null deployment dates in scenarios. This ensures that only relevant scenarios get new coordinates, preventing strategic objectives from being relocated erroneously. --- MekHQ/src/mekhq/campaign/stratcon/StratconRulesManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MekHQ/src/mekhq/campaign/stratcon/StratconRulesManager.java b/MekHQ/src/mekhq/campaign/stratcon/StratconRulesManager.java index abbc5d5fe1..e61e3ed5cd 100644 --- a/MekHQ/src/mekhq/campaign/stratcon/StratconRulesManager.java +++ b/MekHQ/src/mekhq/campaign/stratcon/StratconRulesManager.java @@ -2037,7 +2037,7 @@ public static void processDailyMovement(Campaign campaign, StratconCampaignState List allScenarios = new ArrayList<>(track.getScenarios().values()); for (StratconScenario scenario : allScenarios) { - if (scenario.getDeploymentDate() == null) { + if (scenario.getDeploymentDate() == null && !scenario.isStrategicObjective()) { StratconCoords scenarioCoords = scenario.getCoords(); StratconCoords newCoords = getUnoccupiedAdjacentCoords(scenarioCoords, track, true);