diff --git a/Game/Dungeon/DungeonHandler.cs b/Game/Dungeon/DungeonHandler.cs index 163a184..f09d70b 100644 --- a/Game/Dungeon/DungeonHandler.cs +++ b/Game/Dungeon/DungeonHandler.cs @@ -159,15 +159,16 @@ public sealed partial class DungeonHandler : IClientMessageHandler return; } // All dungeon operations require authentication - if (!_sessions.TryGet(connection.Id, out var accountId, out _) && opCode != DungeonOpCodes.ASSET_MANIFEST_REQUEST) + if (!_sessions.TryGet(connection.Id, out var accountId, out _) && opCode != DungeonOpCodes.ASSET_MANIFEST_REQUEST && opCode != OpCodes.PONG) { await SendErrorAsync(connection, $"auth_required for packet: {opCode}", ct); return; } // Get or create player session + var session = await GetOrCreateSessionAsync(connection, accountId, ct); - if (session == null) + if (session == null && opCode != OpCodes.PONG) { await SendErrorAsync(connection, "no_character", ct); return;