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:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user