aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Quests/QuestDef.cpp
diff options
context:
space:
mode:
authorSnapperRy <snapperryen@gmail.com>2016-07-05 09:53:08 +0200
committerjoschiwald <joschiwald.trinity@gmail.com>2017-02-04 23:21:27 +0100
commit752c789aaf3be7afaf76dc1464296d553f35528a (patch)
tree302aa4f89c2c3b25214931c14a94d4739df68e0e /src/server/game/Quests/QuestDef.cpp
parent8ee0a14c27cd481ab62117639ed28b00c0248699 (diff)
Core/Quest: do not save/load Dungeon Finder/daily/repeatable quests as completed (#17458)
* Core/Quest: do not save/load Dungeon Finder/daily/repeatable quests as completed (cherry picked from commit 7905651b0793d47b4ba040ad6ac47231ad3ec9d2) # Conflicts: # src/server/game/Entities/Player/Player.cpp
Diffstat (limited to 'src/server/game/Quests/QuestDef.cpp')
-rw-r--r--src/server/game/Quests/QuestDef.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/server/game/Quests/QuestDef.cpp b/src/server/game/Quests/QuestDef.cpp
index 06d0bda9443..1a636eac3bd 100644
--- a/src/server/game/Quests/QuestDef.cpp
+++ b/src/server/game/Quests/QuestDef.cpp
@@ -397,3 +397,10 @@ uint32 Quest::CalculateHonorGain(uint8 /*level*/) const
return honor;
}
+
+bool Quest::CanIncreaseRewardedQuestCounters() const
+{
+ // Dungeon Finder/Daily/Repeatable (if not weekly, monthly or seasonal) quests are never considered rewarded serverside.
+ // This affects counters and client requests for completed quests.
+ return (!IsDFQuest() && !IsDaily() && (!IsRepeatable() || IsWeekly() || IsMonthly() || IsSeasonal()));
+}