aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Quests/QuestDef.cpp
diff options
context:
space:
mode:
authorShocker <shocker@freakz.ro>2012-02-09 10:28:02 -0800
committerShocker <shocker@freakz.ro>2012-02-09 10:28:02 -0800
commitd2e018dbbc7b207c0b7370df4510e17f803e8bef (patch)
tree08d0d4891efc82496f25cceb7822e28ef8a312f5 /src/server/game/Quests/QuestDef.cpp
parent493ff0fbb2ca3d25b14aa7d0cb982d7c0d3685bc (diff)
parent89adbc177893ae88a4649c96e04cfeafc75197ba (diff)
Merge pull request #5150 from Kline-/master
Core/Config: Add config option for Quest Auto Accept/Ignore (commiter's note: there is no blizzlike reason for this but that doesn't mean it's not a good idea)
Diffstat (limited to 'src/server/game/Quests/QuestDef.cpp')
-rwxr-xr-xsrc/server/game/Quests/QuestDef.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/server/game/Quests/QuestDef.cpp b/src/server/game/Quests/QuestDef.cpp
index 0467eaa3253..18340ea224b 100755
--- a/src/server/game/Quests/QuestDef.cpp
+++ b/src/server/game/Quests/QuestDef.cpp
@@ -210,9 +210,14 @@ int32 Quest::GetRewOrReqMoney() const
return int32(RewardOrRequiredMoney * sWorld->getRate(RATE_DROP_MONEY));
}
+bool Quest::IsAutoAccept() const
+{
+ return sWorld->getBoolConfig(CONFIG_QUEST_IGNORE_AUTO_ACCEPT) ? false : Flags & QUEST_FLAGS_AUTO_ACCEPT;
+}
+
bool Quest::IsAutoComplete() const
{
- return Method == 0 || HasFlag(QUEST_FLAGS_AUTOCOMPLETE);
+ return sWorld->getBoolConfig(CONFIG_QUEST_IGNORE_AUTO_COMPLETE) ? false : Method == 0 || HasFlag(QUEST_FLAGS_AUTOCOMPLETE);
}
bool Quest::IsAllowedInRaid() const