Core/Quests: Fixed marking quest objectives as complete clientside for objectives using flagging instead of counters

Port From (https://github.com/TrinityCore/TrinityCore/commit/e3a9b18567866ab5b309758168fbe4ce579b30f3)
This commit is contained in:
hondacrx
2021-01-26 19:35:05 -05:00
parent b22dc3bc8a
commit 322920ab8c
3 changed files with 19 additions and 7 deletions
+1 -1
View File
@@ -763,7 +763,7 @@ namespace Game.Entities
if (!objectiveItr.IsStoringFlag())
SetQuestSlotCounter(slot, objectiveIndex, (ushort)data);
else if (data != 0)
SetQuestSlotState(slot, (QuestSlotStateMask)(256 << objectiveIndex));
SetQuestSlotObjectiveFlag(slot, (sbyte)objectiveIndex);
}
else
Log.outError(LogFilter.Player, "Player {0} ({1}) has quest {2} out of range objective index {3}.", GetName(), GetGUID().ToString(), questID, objectiveIndex);