allow SpellEffectName.QuestComplete to set a quest to rewarded only if that quest is used as internal flag by the server (has flag 1024 - QuestFlags.Tracking).
This commit is contained in:
@@ -4046,8 +4046,8 @@ namespace Game.Spells
|
|||||||
ushort logSlot = player.FindQuestSlot(questId);
|
ushort logSlot = player.FindQuestSlot(questId);
|
||||||
if (logSlot < SharedConst.MaxQuestLogSize)
|
if (logSlot < SharedConst.MaxQuestLogSize)
|
||||||
player.AreaExploredOrEventHappens(questId);
|
player.AreaExploredOrEventHappens(questId);
|
||||||
else if (player.CanTakeQuest(quest, false)) // Check if the quest has already been turned in.
|
else if (quest.HasFlag(QuestFlags.Tracking)) // Check if the quest is used as a serverside flag.
|
||||||
player.SetRewardedQuest(questId); // If not, set status to rewarded without broadcasting it to client.
|
player.SetRewardedQuest(questId); // If so, set status to rewarded without broadcasting it to client.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user