6c812394cbd673e0f84cbbfc58a1a373bcbab840
The issue: AddPlayerBot() only queues spawn to _pendingSpawns and returns immediately. MarkAsInstanceBot() was called right after, but the session doesn't exist yet, causing "session not found" errors and bots not being properly tracked as instance bots. The fix: - Add markAsInstanceBot field to BotPendingConfiguration - Set markAsInstanceBot=true in BotCloneEngine and InstanceBotPool - Apply marking in BotPostLoginConfigurator::ApplyPendingConfiguration() AFTER the session is guaranteed to exist - Remove premature MarkAsInstanceBot() call from JITBotFactory This ensures JIT/warm pool bots get: - Proper idle timeout (60 seconds) - Restricted behavior (no questing, BattlePetManager, etc.) - Correct instance bot tracking Co-Authored-By: Claude Opus 4.5 <[email protected]> Signed-off-by: luis <[email protected]>
WowCommunityProject
Blizzlike WowCommunity project
Languages
C++
89.3%
C
10.1%
CMake
0.4%