Core/Quests: Quest improvements
Port From (https://github.com/TrinityCore/TrinityCore/commit/91b91b502f30f781c8dea77dec4ce2f469b89744)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user