Core/Quests: Quest improvements

Port From (https://github.com/TrinityCore/TrinityCore/commit/91b91b502f30f781c8dea77dec4ce2f469b89744)
This commit is contained in:
hondacrx
2021-05-11 11:39:14 -04:00
parent 852cd21cae
commit 8847de54d5
13 changed files with 539 additions and 305 deletions
+1 -1
View File
@@ -728,9 +728,9 @@ namespace Game
public class QuestStatusData
{
public ushort Slot = SharedConst.MaxQuestLogSize;
public QuestStatus Status;
public uint Timer;
public int[] ObjectiveData;
}
public class QuestGreeting
@@ -291,6 +291,13 @@ namespace Game
return false;
}
ushort slot = _owner.FindQuestSlot(objective.QuestID);
if (slot >= SharedConst.MaxQuestLogSize || !_owner.IsQuestObjectiveCompletable(slot, quest, objective))
{
Log.outTrace(LogFilter.Achievement, $"QuestObjectiveCriteriaMgr.CanUpdateCriteriaTree: (Id: {criteria.Id} Type {criteria.Entry.Type} Quest Objective {objective.Id}) Objective not completable");
return false;
}
return base.CanUpdateCriteriaTree(criteria, tree, referencePlayer);
}