Merge branch 'liyunfan1223:master' into login-range

This commit is contained in:
NoxMax
2025-08-09 10:29:45 -06:00
committed by GitHub
19 changed files with 190 additions and 88 deletions

View File

@@ -2258,7 +2258,7 @@ void RandomPlayerbotMgr::RandomTeleport(Player* bot)
float range = sPlayerbotAIConfig->randomBotTeleportDistance;
Acore::AnyUnitInObjectRangeCheck u_check(bot, range);
Acore::UnitListSearcher<Acore::AnyUnitInObjectRangeCheck> searcher(bot, targets, u_check);
Cell::VisitAllObjects(bot, searcher, range);
Cell::VisitObjects(bot, searcher, range);
if (!targets.empty())
{