Skip to content

Commit

Permalink
-Loot fix: Bots now properly loot herb quest items that contain items…
Browse files Browse the repository at this point in the history
… the bot needs for a quest.
  • Loading branch information
mostlikely4r committed Jun 3, 2024
1 parent d5c511a commit 4c4e20c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions playerbot/LootObjectStack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ void LootObject::Refresh(Player* bot, ObjectGuid guid)
#else
/*if (!guid.IsEmpty())
{
for (auto& entry : GAI_VALUE2(std::list<int32>, "item drop list", -go->GetEntry()))
for (auto& entry : GAI_VALUE2(std::list<int32>, "item drop list", -1*uint(go->GetEntry())))
{
if (IsNeededForQuest(bot, entry))
{
Expand Down Expand Up @@ -260,7 +260,7 @@ bool LootObject::IsLootPossible(Player* bot)
if (go->ActivateToQuest(bot))
{
bool hasQuestItems = false;
for (auto& entry : GAI_VALUE2(std::list<uint32>, "entry loot list", -go->GetEntry()))
for (auto& entry : GAI_VALUE2(std::list<uint32>, "entry loot list", -1*int(go->GetEntry())))
{
if (IsNeededForQuest(bot, entry))
{
Expand Down

0 comments on commit 4c4e20c

Please sign in to comment.