mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 17:54:48 +01:00
Core/GameObject: Make chests (type 3) GOs active even if they have no loot if
a questID is defined and active for the player. It is possible for events to happen even if the GO has no loot. Original Author: NoFantasy Optomized by: kamikazetg --HG-- branch : trunk
This commit is contained in:
@@ -7869,7 +7869,7 @@ void ObjectMgr::LoadGameObjectForQuests()
|
||||
uint32 loot_id = goInfo->GetLootId();
|
||||
|
||||
// find quest loot for GO
|
||||
if (LootTemplates_Gameobject.HaveQuestLootFor(loot_id))
|
||||
if (goInfo->chest.questId || LootTemplates_Gameobject.HaveQuestLootFor(loot_id))
|
||||
{
|
||||
mGameObjectForQuestSet.insert(go_entry);
|
||||
++count;
|
||||
|
||||
Reference in New Issue
Block a user