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:
hondacrx
2017-10-04 12:30:41 -04:00
parent f43ab8cd82
commit e8eecfedae
+2 -2
View File
@@ -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.
} }
} }