diff options
| author | Rat <none@none> | 2010-09-20 10:19:20 +0200 |
|---|---|---|
| committer | Rat <none@none> | 2010-09-20 10:19:20 +0200 |
| commit | 2fb80e4a86a6006d5692e483880e4ec4370fe5f5 (patch) | |
| tree | 81193faa0a36fcd358c7c9ff509123de03364411 /src/server/game/Conditions/ConditionMgr.cpp | |
| parent | 1d6d11d367f6176b9df5a93cc68e4834623a605f (diff) | |
Core/ConditionMgr: You can now hide/show the quest marks with conditions (! ?)
note: check only runs at quest giver query!
Using together with CONDITION_SOURCE_TYPE_QUEST_ACCEPT you can totally hide quests
--HG--
branch : trunk
Diffstat (limited to 'src/server/game/Conditions/ConditionMgr.cpp')
| -rw-r--r-- | src/server/game/Conditions/ConditionMgr.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/server/game/Conditions/ConditionMgr.cpp b/src/server/game/Conditions/ConditionMgr.cpp index 0f3cd4ec353..3a59ccc43b7 100644 --- a/src/server/game/Conditions/ConditionMgr.cpp +++ b/src/server/game/Conditions/ConditionMgr.cpp @@ -910,7 +910,17 @@ bool ConditionMgr::isSourceTypeValid(Condition* cond) Quest const *Quest = sObjectMgr.GetQuestTemplate(cond->mSourceEntry); if (!Quest) { - sLog.outErrorDb("CONDITION_SOURCE_TYPE_QUESTID specifies non-existing quest (%u), skipped", cond->mSourceEntry); + sLog.outErrorDb("CONDITION_SOURCE_TYPE_QUEST_ACCEPT specifies non-existing quest (%u), skipped", cond->mSourceEntry); + return false; + } + } + break; + case CONDITION_SOURCE_TYPE_QUEST_SHOW_MARK: + { + Quest const *Quest = sObjectMgr.GetQuestTemplate(cond->mSourceEntry); + if (!Quest) + { + sLog.outErrorDb("CONDITION_SOURCE_TYPE_QUEST_SHOW_MARK specifies non-existing quest (%u), skipped", cond->mSourceEntry); return false; } } |
