random bots maintanence

This commit is contained in:
Yunfan Li
2023-08-08 15:22:01 +08:00
parent e3094f2558
commit f383f46e2d
3 changed files with 8 additions and 12 deletions

View File

@@ -2182,7 +2182,7 @@ void RandomItemMgr::BuildAmmoCache()
for (uint32 subClass = ITEM_SUBCLASS_ARROW; subClass <= ITEM_SUBCLASS_THROWN; subClass++)
{
QueryResult results = WorldDatabase.Query("SELECT entry FROM item_template WHERE class = {} AND subclass = {} AND RequiredLevel <= {} "
"ORDER BY RequiredLevel DESC", ITEM_CLASS_PROJECTILE, subClass, level);
"ORDER BY RequiredLevel DESC, Quality DESC, ItemLevel DESC", ITEM_CLASS_PROJECTILE, subClass, level);
if (!results)
return;