9f7447ff834fdfd2256b2bec6114157ec801ba4d
Three critical fixes for bot functionality:
1. BaselineRotationManager: Fix specialization detection
- GetActiveTalentGroup() returns talent GROUP index (0 or 1), not spec
- Changed to GetPrimarySpecialization() == ChrSpecialization::None
- Bots with specs now use proper spec-based rotations instead of BASELINE
2. BotPostLoginConfigurator: Fix gear never being applied
- shouldApplyGear was always false due to broken condition
- Changed to always apply gear, using BotGearFactory as fallback
- Added WasRecentlyConfigured() to prevent LevelManager re-leveling race
- Fixed ApplyClassSpells() to properly learn specialization spells
3. GroupCombatStrategy: Fix group combat assist detection
- ObjectAccessor::FindPlayer() returned NULL for some bot group members
- Added FindGroupMember() helper with fallback lookups:
* ObjectAccessor::FindPlayer() (in-world)
* ObjectAccessor::FindConnectedPlayer() (any connected player)
* BotWorldSessionMgr::GetPlayerBot() (module registry)
- Bots now properly detect when group members are in combat and assist
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%