Core/Players: Call OnQuestObjectiveChange after updating objective counters

Port From (https://github.com/TrinityCore/TrinityCore/commit/7445d528d24c8ae84784806cb8792d34cc0c301f)
This commit is contained in:
Hondacrx
2025-08-10 12:58:45 -04:00
parent 885255604e
commit b1027ff2ed
+4 -4
View File
@@ -3013,10 +3013,6 @@ namespace Game.Entities
if (oldData == data)
return;
Quest quest = Global.ObjectMgr.GetQuestTemplate(objective.QuestID);
if (quest != null)
Global.ScriptMgr.OnQuestObjectiveChange(this, quest, objective, oldData, data);
// Add to save
m_QuestStatusSave[objective.QuestID] = QuestSaveType.Default;
@@ -3027,6 +3023,10 @@ namespace Game.Entities
SetQuestSlotObjectiveFlag(status.Slot, objective.StorageIndex);
else
RemoveQuestSlotObjectiveFlag(status.Slot, objective.StorageIndex);
Quest quest = Global.ObjectMgr.GetQuestTemplate(objective.QuestID);
if (quest != null)
Global.ScriptMgr.OnQuestObjectiveChange(this, quest, objective, oldData, data);
}
public bool IsQuestObjectiveCompletable(ushort slot, Quest quest, QuestObjective objective)