Merge pull request #448 from liyunfan1223/fix_gear_quality

Fix gear quality issue for random bots
This commit is contained in:
Yunfan Li
2024-08-08 00:05:42 +08:00
committed by GitHub
2 changed files with 2 additions and 3 deletions

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);