diff --git a/src/GameLogic/CastleSiege/CastleSiegeHuntingPortalTalkPlugIn.cs b/src/GameLogic/CastleSiege/CastleSiegeHuntingPortalTalkPlugIn.cs index f736f80..f5c506d 100644 --- a/src/GameLogic/CastleSiege/CastleSiegeHuntingPortalTalkPlugIn.cs +++ b/src/GameLogic/CastleSiege/CastleSiegeHuntingPortalTalkPlugIn.cs @@ -4,6 +4,7 @@ namespace MUnique.OpenMU.GameLogic.CastleSiege; +using System.Linq; using System.Runtime.InteropServices; using MUnique.OpenMU.GameLogic.NPC; using MUnique.OpenMU.GameLogic.PlugIns; @@ -45,7 +46,11 @@ public class CastleSiegeHuntingPortalTalkPlugIn : IPlayerTalkToNpcPlugIn } var map = await player.GameContext.GetMapAsync((ushort)CastleSiegeMapAccess.CastleHuntingMapNumber).ConfigureAwait(false); - if (map?.SafeZoneSpawnGate is not { } gate) + + // Land of Trials has no spawn gate defined; fall back to its single entry ExitGate (the designated + // map entrance at ~60-69,10-19) so the player lands on walkable ground. + var gate = map?.SafeZoneSpawnGate ?? map?.Definition.ExitGates?.FirstOrDefault(); + if (gate is null) { await ShowAsync(player, "The castle hunting ground is not available right now.").ConfigureAwait(false); return;