mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
[10589] Always activate GO type 3 when quest id is defined (and active)
GO may be "lootless", but events at looting can happen Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
fc2e66231b
commit
b0d5e3e51a
3 changed files with 12 additions and 3 deletions
|
|
@ -7725,8 +7725,14 @@ void ObjectMgr::LoadGameObjectForQuests()
|
|||
{
|
||||
uint32 loot_id = goInfo->GetLootId();
|
||||
|
||||
// always activate to quest, GO may not have loot
|
||||
if (goInfo->chest.questId)
|
||||
{
|
||||
mGameObjectForQuestSet.insert(go_entry);
|
||||
++count;
|
||||
}
|
||||
// find quest loot for GO
|
||||
if(LootTemplates_Gameobject.HaveQuestLootFor(loot_id))
|
||||
else if (LootTemplates_Gameobject.HaveQuestLootFor(loot_id))
|
||||
{
|
||||
mGameObjectForQuestSet.insert(go_entry);
|
||||
++count;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue