diff options
author | Shauren <shauren.trinity@gmail.com> | 2018-03-14 23:31:49 +0100 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2018-03-14 23:31:49 +0100 |
commit | 5bd61e91bf0a4530598a5969047d0374fa761ff8 (patch) | |
tree | 0a91d3818d81d8498a064582c5e5ef1dc207803f /src/server/game/Conditions/ConditionMgr.cpp | |
parent | bc88d3bc15debb70432603b21a2319b72db02f49 (diff) |
Core/Misc: Graveyards can now use conditions, SourceType = 27, SourceEntry = graveyard_zone.ID
Diffstat (limited to 'src/server/game/Conditions/ConditionMgr.cpp')
-rw-r--r-- | src/server/game/Conditions/ConditionMgr.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/server/game/Conditions/ConditionMgr.cpp b/src/server/game/Conditions/ConditionMgr.cpp index a2a97faa783..8598b44915d 100644 --- a/src/server/game/Conditions/ConditionMgr.cpp +++ b/src/server/game/Conditions/ConditionMgr.cpp @@ -1852,6 +1852,13 @@ bool ConditionMgr::isSourceTypeValid(Condition* cond) const case CONDITION_SOURCE_TYPE_GOSSIP_MENU_OPTION: case CONDITION_SOURCE_TYPE_SMART_EVENT: break; + case CONDITION_SOURCE_TYPE_GRAVEYARD: + if (!sWorldSafeLocsStore.LookupEntry(cond->SourceEntry)) + { + TC_LOG_ERROR("sql.sql", "%s SourceEntry in `condition` table, does not exist in WorldSafeLocs.db2, ignoring.", cond->ToString().c_str()); + return false; + } + break; default: TC_LOG_ERROR("sql.sql", "%s Invalid ConditionSourceType in `condition` table, ignoring.", cond->ToString().c_str()); return false; |