Temporary ammo init fix

This commit is contained in:
Yunfan Li
2024-09-09 22:30:17 +08:00
parent ae78d51d8f
commit 0b3292c1d0

View File

@@ -2322,7 +2322,7 @@ void RandomItemMgr::BuildAmmoCache()
for (uint32 subClass = ITEM_SUBCLASS_ARROW; subClass <= ITEM_SUBCLASS_BULLET; subClass++)
{
QueryResult results = WorldDatabase.Query(
"SELECT entry, Flags FROM item_template WHERE class = {} AND subclass = {} AND RequiredLevel <= {} "
"SELECT entry, Flags FROM item_template WHERE class = {} AND subclass = {} AND RequiredLevel <= {} and duration = 0 "
"ORDER BY stackable DESC, RequiredLevel DESC",
ITEM_CLASS_PROJECTILE, subClass, level);
if (!results)