Fix gear quality issue for random bots

This commit is contained in:
Yunfan Li
2024-08-07 15:47:29 +08:00
parent d3410673b0
commit 901ae2305c
2 changed files with 2 additions and 3 deletions

View File

@@ -1815,8 +1815,7 @@ void RandomPlayerbotMgr::Refresh(Player* bot)
bot->DurabilityRepairAll(false, 1.0f, false);
bot->SetFullHealth();
bot->SetPvP(true);
PlayerbotFactory factory(bot, bot->GetLevel(), ITEM_QUALITY_RARE);
PlayerbotFactory factory(bot, bot->GetLevel());
factory.Refresh();
if (bot->GetMaxPower(POWER_MANA) > 0)

View File

@@ -210,7 +210,7 @@ bool AutoUpgradeEquipAction::Execute(Event event)
{
return false;
}
PlayerbotFactory factory(bot, bot->GetLevel(), ITEM_QUALITY_RARE);
PlayerbotFactory factory(bot, bot->GetLevel());
if (!sPlayerbotAIConfig->equipmentPersistence || bot->GetLevel() < sPlayerbotAIConfig->equipmentPersistenceLevel)
{
factory.InitEquipment(true);