Core/Players: Call OnQuestObjectiveChange after updating objective counters
Port From (https://github.com/TrinityCore/TrinityCore/commit/7445d528d24c8ae84784806cb8792d34cc0c301f)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user