From db46b39a93acd58da965c146a90a9f35a973390b Mon Sep 17 00:00:00 2001 From: hondacrx Date: Tue, 22 Feb 2022 19:42:56 -0500 Subject: [PATCH] Core/Quests: Add missing GO_DYNFLAG_LO_ACTIVATE to lootable chests related to quests but not having quest loot Port From (https://github.com/TrinityCore/TrinityCore/commit/0e586bb476f5d36df646539f5bb3d47a2101e9fc) --- Source/Game/Entities/GameObject/GameObject.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Game/Entities/GameObject/GameObject.cs b/Source/Game/Entities/GameObject/GameObject.cs index 5a5310eaf..93a4830af 100644 --- a/Source/Game/Entities/GameObject/GameObject.cs +++ b/Source/Game/Entities/GameObject/GameObject.cs @@ -1356,7 +1356,7 @@ namespace Game.Entities return false; // scan GO chest with loot including quest items - if (LootStorage.Gameobject.HaveQuestLootForPlayer(GetGoInfo().GetLootId(), target)) + if (target.GetQuestStatus(GetGoInfo().Chest.questID) == QuestStatus.Incomplete || LootStorage.Gameobject.HaveQuestLootForPlayer(GetGoInfo().GetLootId(), target)) { Battleground bg = target.GetBattleground(); if (bg)