mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
Temporary ammo init fix
This commit is contained in:
@@ -2322,7 +2322,7 @@ void RandomItemMgr::BuildAmmoCache()
|
|||||||
for (uint32 subClass = ITEM_SUBCLASS_ARROW; subClass <= ITEM_SUBCLASS_BULLET; subClass++)
|
for (uint32 subClass = ITEM_SUBCLASS_ARROW; subClass <= ITEM_SUBCLASS_BULLET; subClass++)
|
||||||
{
|
{
|
||||||
QueryResult results = WorldDatabase.Query(
|
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",
|
"ORDER BY stackable DESC, RequiredLevel DESC",
|
||||||
ITEM_CLASS_PROJECTILE, subClass, level);
|
ITEM_CLASS_PROJECTILE, subClass, level);
|
||||||
if (!results)
|
if (!results)
|
||||||
|
|||||||
Reference in New Issue
Block a user