Throw an exception if using aethernet doesn't work and the destination is in another...
authorLiza Carvelli <liza@carvel.li>
Thu, 16 Jan 2025 21:55:22 +0000 (22:55 +0100)
committerLiza Carvelli <liza@carvel.li>
Thu, 16 Jan 2025 21:55:22 +0000 (22:55 +0100)
Questionable/Controller/Steps/Shared/AethernetShortcut.cs

index bfb2cc3ff1f07f719f3a481a51eba42af5c555c3..e63b69c0ab31c435a474493669f6c748d7ebcea6 100644 (file)
@@ -179,10 +179,12 @@ internal static class AethernetShortcut
                     }
                 }
             }
-            else
+            else if (clientState.TerritoryType == aetheryteData.TerritoryIds[Task.To])
                 logger.LogWarning(
-                    "Aethernet shortcut not unlocked (from: {FromAetheryte}, to: {ToAetheryte}), walking manually",
+                    "Aethernet shortcut not unlocked (from: {FromAetheryte}, to: {ToAetheryte}), skipping as we are already in the destination territory",
                     Task.From, Task.To);
+            else
+                throw new TaskException($"Aethernet shortcut not unlocked (from: {Task.From}, to: {Task.To})");
 
             return false;
         }