Merge pull request #397 from noisiver/loot-quest-objects

Fix bots looting quest objects
This commit is contained in:
Yunfan Li 2024-07-28 12:09:17 +08:00 committed by GitHub
commit dc1ae57db6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -96,7 +96,7 @@ void LootObject::Refresh(Player* bot, ObjectGuid lootGUID)
if (IsNeededForQuest(bot, itemId))
{
this->guid = guid;
this->guid = lootGUID;
return;
}
isQuestItemOnly |= itemId > 0;