diff --git a/src/RandomPlayerbotFactory.cpp b/src/RandomPlayerbotFactory.cpp index 910eaa6c..1580b828 100644 --- a/src/RandomPlayerbotFactory.cpp +++ b/src/RandomPlayerbotFactory.cpp @@ -498,10 +498,7 @@ void RandomPlayerbotFactory::CreateRandomGuilds() continue; if (sGuildMgr->GetGuildByName(guildName)) - { - LOG_WARN("playerbots", "GuildName %s is busy. Skipped...", guildName.c_str()); continue; - } if (availableLeaders.empty()) { @@ -518,6 +515,9 @@ void RandomPlayerbotFactory::CreateRandomGuilds() continue; } + if (player->GetGuildId()) + continue; + Guild* guild = new Guild(); if (!guild->Create(player, guildName)) {