From e8eecfedae14d478e4ce863b90982d7a2f4f099f Mon Sep 17 00:00:00 2001 From: hondacrx Date: Wed, 4 Oct 2017 12:30:41 -0400 Subject: [PATCH] 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). --- Game/Spells/SpellEffects.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Game/Spells/SpellEffects.cs b/Game/Spells/SpellEffects.cs index b7776b0b8..d35f8ddc2 100644 --- a/Game/Spells/SpellEffects.cs +++ b/Game/Spells/SpellEffects.cs @@ -4046,8 +4046,8 @@ namespace Game.Spells ushort logSlot = player.FindQuestSlot(questId); if (logSlot < SharedConst.MaxQuestLogSize) player.AreaExploredOrEventHappens(questId); - else if (player.CanTakeQuest(quest, false)) // Check if the quest has already been turned in. - player.SetRewardedQuest(questId); // If not, set status to rewarded without broadcasting it to client. + else if (quest.HasFlag(QuestFlags.Tracking)) // Check if the quest is used as a serverside flag. + player.SetRewardedQuest(questId); // If so, set status to rewarded without broadcasting it to client. } }