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)
This commit is contained in:
hondacrx
2022-02-22 19:42:56 -05:00
parent 8ba914cb61
commit db46b39a93
@@ -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)