aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSnapperRy <snapperryen@gmail.com>2016-07-11 10:15:51 +0200
committerjoschiwald <joschiwald.trinity@gmail.com>2017-02-05 16:38:18 +0100
commita390604fb22dceb3e27f8077b1a43f7b07756b65 (patch)
treefca40e8a4f74a5cbf2fc9da9d70a4c32c1c1799d /src
parente575a6a03e1e0068c35867dd7bbe5c9e3c80b9a0 (diff)
Core/Quest: implement usage of QUEST_FLAGS_RAID to allow a quest to be completed while in raid. (#17535)
By @ForesterDev (cherry picked from commit baf54cff3be034e98874f2e2298f6164f826e2ae)
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Quests/QuestDef.cpp3
-rw-r--r--src/server/game/Quests/QuestDef.h2
2 files changed, 4 insertions, 1 deletions
diff --git a/src/server/game/Quests/QuestDef.cpp b/src/server/game/Quests/QuestDef.cpp
index 1a636eac3bd..4ba5e08f447 100644
--- a/src/server/game/Quests/QuestDef.cpp
+++ b/src/server/game/Quests/QuestDef.cpp
@@ -369,6 +369,9 @@ bool Quest::IsRaidQuest(Difficulty difficulty) const
break;
}
+ if ((Flags & QUEST_FLAGS_RAID) != 0)
+ return true;
+
return false;
}
diff --git a/src/server/game/Quests/QuestDef.h b/src/server/game/Quests/QuestDef.h
index 0c239cbd608..5cd67cab954 100644
--- a/src/server/game/Quests/QuestDef.h
+++ b/src/server/game/Quests/QuestDef.h
@@ -146,7 +146,7 @@ enum QuestFlags
QUEST_FLAGS_SHARABLE = 0x00000008, // Can be shared: Player::CanShareQuest()
QUEST_FLAGS_HAS_CONDITION = 0x00000010, // Not used currently
QUEST_FLAGS_HIDE_REWARD_POI = 0x00000020, // Not used currently: Unsure of content
- QUEST_FLAGS_RAID = 0x00000040, // Not used currently
+ QUEST_FLAGS_RAID = 0x00000040, // Can be completed while in raid
QUEST_FLAGS_TBC = 0x00000080, // Not used currently: Available if TBC expansion enabled only
QUEST_FLAGS_NO_MONEY_FROM_XP = 0x00000100, // Not used currently: Experience is not converted to gold at max level
QUEST_FLAGS_HIDDEN_REWARDS = 0x00000200, // Items and money rewarded only sent in SMSG_QUESTGIVER_OFFER_REWARD (not in SMSG_QUESTGIVER_QUEST_DETAILS or in client quest log(SMSG_QUEST_QUERY_RESPONSE))