mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
fix
removed unexisting spells for mounting moved condition for check Guild on top of method
This commit is contained in:
parent
e7c3b474d3
commit
0b83523a2c
@ -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();
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user