Throw an exception if using aethernet doesn't work and the destination is in another territory

This commit is contained in:
Liza 2025-01-16 22:55:22 +01:00
parent 16b62316c5
commit 7734692b0f
Signed by: liza
GPG Key ID: 2C41B84815CF6445

View File

@ -179,10 +179,12 @@ internal static class AethernetShortcut
} }
} }
} }
else else if (clientState.TerritoryType == aetheryteData.TerritoryIds[Task.To])
logger.LogWarning( 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); Task.From, Task.To);
else
throw new TaskException($"Aethernet shortcut not unlocked (from: {Task.From}, to: {Task.To})");
return false; return false;
} }