mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-13 09:07:19 +00:00
tank target, formation arrow, mount fix, miscs
This commit is contained in:
@@ -992,14 +992,14 @@ void RandomPlayerbotMgr::RandomTeleport(Player* bot, std::vector<WorldLocation>&
|
||||
std::vector<WorldPosition> tlocs;
|
||||
for (auto& loc : locs)
|
||||
tlocs.push_back(WorldPosition(loc));
|
||||
LOG_INFO("playerbots", "Locs {} collected.", tlocs.size());
|
||||
// LOG_INFO("playerbots", "Locs {} collected.", tlocs.size());
|
||||
//Do not teleport to maps disabled in config
|
||||
tlocs.erase(std::remove_if(tlocs.begin(), tlocs.end(), [bot](WorldPosition l)
|
||||
{
|
||||
std::vector<uint32>::iterator i = find(sPlayerbotAIConfig->randomBotMaps.begin(), sPlayerbotAIConfig->randomBotMaps.end(), l.getMapId());
|
||||
return i == sPlayerbotAIConfig->randomBotMaps.end();
|
||||
}), tlocs.end());
|
||||
LOG_INFO("playerbots", "Locs {} after disabled in config.", tlocs.size());
|
||||
// LOG_INFO("playerbots", "Locs {} after disabled in config.", tlocs.size());
|
||||
// Check locs again in case all possible locations were removed
|
||||
if (tlocs.empty())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user