From 0b3292c1d0d609c3d727ba96497d72b75baa57d5 Mon Sep 17 00:00:00 2001 From: Yunfan Li Date: Mon, 9 Sep 2024 22:30:17 +0800 Subject: [PATCH] Temporary ammo init fix --- src/RandomItemMgr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RandomItemMgr.cpp b/src/RandomItemMgr.cpp index 157ca308..2905174c 100644 --- a/src/RandomItemMgr.cpp +++ b/src/RandomItemMgr.cpp @@ -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)