mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
fix create random guild
This commit is contained in:
@@ -498,10 +498,7 @@ void RandomPlayerbotFactory::CreateRandomGuilds()
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (sGuildMgr->GetGuildByName(guildName))
|
if (sGuildMgr->GetGuildByName(guildName))
|
||||||
{
|
|
||||||
LOG_WARN("playerbots", "GuildName %s is busy. Skipped...", guildName.c_str());
|
|
||||||
continue;
|
continue;
|
||||||
}
|
|
||||||
|
|
||||||
if (availableLeaders.empty())
|
if (availableLeaders.empty())
|
||||||
{
|
{
|
||||||
@@ -518,6 +515,9 @@ void RandomPlayerbotFactory::CreateRandomGuilds()
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (player->GetGuildId())
|
||||||
|
continue;
|
||||||
|
|
||||||
Guild* guild = new Guild();
|
Guild* guild = new Guild();
|
||||||
if (!guild->Create(player, guildName))
|
if (!guild->Create(player, guildName))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user