From 4c4e20c038fdcb6aa08d7b0532f05a727fc8f709 Mon Sep 17 00:00:00 2001 From: mostlikely4r Date: Mon, 3 Jun 2024 15:50:16 +0200 Subject: [PATCH] -Loot fix: Bots now properly loot herb quest items that contain items the bot needs for a quest. --- playerbot/LootObjectStack.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/playerbot/LootObjectStack.cpp b/playerbot/LootObjectStack.cpp index 2d9f5bbb..3f3c2332 100644 --- a/playerbot/LootObjectStack.cpp +++ b/playerbot/LootObjectStack.cpp @@ -97,7 +97,7 @@ void LootObject::Refresh(Player* bot, ObjectGuid guid) #else /*if (!guid.IsEmpty()) { - for (auto& entry : GAI_VALUE2(std::list, "item drop list", -go->GetEntry())) + for (auto& entry : GAI_VALUE2(std::list, "item drop list", -1*uint(go->GetEntry()))) { if (IsNeededForQuest(bot, entry)) { @@ -260,7 +260,7 @@ bool LootObject::IsLootPossible(Player* bot) if (go->ActivateToQuest(bot)) { bool hasQuestItems = false; - for (auto& entry : GAI_VALUE2(std::list, "entry loot list", -go->GetEntry())) + for (auto& entry : GAI_VALUE2(std::list, "entry loot list", -1*int(go->GetEntry()))) { if (IsNeededForQuest(bot, entry)) {