Increase ammo count for hunter

This commit is contained in:
Yunfan Li
2025-01-19 23:08:42 +08:00
parent 8854f7e9b2
commit e09b871d94

View File

@@ -2815,11 +2815,11 @@ void PlayerbotFactory::InitAmmo()
uint32 entry = sRandomItemMgr->GetAmmo(level, subClass);
uint32 count = bot->GetItemCount(entry);
uint32 maxCount = 6000;
uint32 maxCount = bot->getClass() == CLASS_HUNTER ? 6000 : 1000;
if (count < maxCount / 2)
if (count < maxCount)
{
if (Item* newItem = StoreNewItemInInventorySlot(bot, entry, maxCount / 2))
if (Item* newItem = StoreNewItemInInventorySlot(bot, entry, maxCount - count))
{
newItem->AddToUpdateQueueOf(bot);
}