Core/GameObjects: Fixed the interaction/highlight logic for GAMEOBJECT_TYPE_CHEST and quest objectives

Port From (https://github.com/TrinityCore/TrinityCore/commit/31bd3804e35f63915a5d6d669b31add6c82d7010)
This commit is contained in:
Hondacrx
2024-08-26 17:41:44 -04:00
parent 511ac17c55
commit b7b166c0f0
3 changed files with 37 additions and 12 deletions
+9
View File
@@ -4698,6 +4698,15 @@ namespace Game
++count;
}
foreach (var (questObjectiveId, objective) in _questObjectives)
{
if (objective.Type != QuestObjectiveType.GameObject)
continue;
_gameObjectForQuestStorage.Add((uint)objective.ObjectID);
++count;
}
Log.outInfo(LogFilter.ServerLoading, "Loaded {0} GameObjects for quests in {1} ms", count, Time.GetMSTimeDiffToNow(oldMSTime));
}