removed unexisting spells for mounting
moved condition for check Guild on top of method
This commit is contained in:
Bogir[rus]
2022-04-08 17:37:53 +05:00
committed by GitHub
parent e7c3b474d3
commit 0b83523a2c

View File

@@ -2021,7 +2021,7 @@ void PlayerbotFactory::InitMounts()
fast = { 23225, 23223, 23222 }; fast = { 23225, 23223, 23222 };
break; break;
case RACE_TROLL: case RACE_TROLL:
slow = { 8588, 10796, 8592, 472 }; slow = { 10796, 472 };
fast = { 23241, 23242, 23243 }; fast = { 23241, 23242, 23243 };
break; break;
case RACE_DRAENEI: case RACE_DRAENEI:
@@ -2412,15 +2412,15 @@ void PlayerbotFactory::InitInventoryEquip()
void PlayerbotFactory::InitGuild() void PlayerbotFactory::InitGuild()
{ {
if (bot->GetGuildId())
return;
bot->SaveToDB(false, false); bot->SaveToDB(false, false);
// add guild tabard // add guild tabard
if (bot->GetGuildId() && !bot->HasItemCount(5976, 1)) if (bot->GetGuildId() && !bot->HasItemCount(5976, 1))
StoreItem(5976, 1); StoreItem(5976, 1);
if (bot->GetGuildId())
return;
if (sPlayerbotAIConfig->randomBotGuilds.empty()) if (sPlayerbotAIConfig->randomBotGuilds.empty())
RandomPlayerbotFactory::CreateRandomGuilds(); RandomPlayerbotFactory::CreateRandomGuilds();