mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 09:17:36 +01:00
Core/Quests: Add missing GO_DYNFLAG_LO_ACTIVATE to lootable chests related to quests but not having quest loot
Closes #24474
(cherry picked from commit a26304478d)
This commit is contained in:
@@ -1509,7 +1509,7 @@ bool GameObject::ActivateToQuest(Player const* target) const
|
||||
return false;
|
||||
|
||||
// scan GO chest with loot including quest items
|
||||
if (LootTemplates_Gameobject.HaveQuestLootForPlayer(GetGOInfo()->GetLootId(), target))
|
||||
if (target->GetQuestStatus(GetGOInfo()->chest.questID) == QUEST_STATUS_INCOMPLETE || LootTemplates_Gameobject.HaveQuestLootForPlayer(GetGOInfo()->GetLootId(), target))
|
||||
{
|
||||
if (Battleground const* bg = target->GetBattleground())
|
||||
return bg->CanActivateGO(GetEntry(), target->GetTeam());
|
||||
|
||||
Reference in New Issue
Block a user