Core/Conditions: Reserve CONDITION_SOURCE_TYPE_CONVERSATION_LINE = 29 for master branch

This commit is contained in:
Shauren
2021-10-25 16:35:56 +02:00
parent 822b32b64b
commit b0eaa938c9
2 changed files with 8 additions and 2 deletions

View File

@@ -1838,6 +1838,11 @@ bool ConditionMgr::isSourceTypeValid(Condition* cond) const
TC_LOG_ERROR("sql.sql", "CONDITION_SOURCE_TYPE_AREATRIGGER: is only for master branch, skipped");
return false;
}
case CONDITION_SOURCE_TYPE_CONVERSATION_LINE:
{
TC_LOG_ERROR("sql.sql", "CONDITION_SOURCE_TYPE_CONVERSATION_LINE: is only for master branch, skipped");
return false;
}
case CONDITION_SOURCE_TYPE_GOSSIP_MENU:
case CONDITION_SOURCE_TYPE_GOSSIP_MENU_OPTION:
case CONDITION_SOURCE_TYPE_SMART_EVENT:

View File

@@ -148,8 +148,9 @@ enum ConditionSourceType
CONDITION_SOURCE_TYPE_TERRAIN_SWAP = 25, // only master
CONDITION_SOURCE_TYPE_PHASE = 26, // only master
CONDITION_SOURCE_TYPE_GRAVEYARD = 27, // only master
CONDITION_SOURCE_TYPE_AREATRIGGER = 28, // only master
CONDITION_SOURCE_TYPE_MAX = 28 // MAX
CONDITION_SOURCE_TYPE_AREATRIGGER = 28, // only master (this refers to dynamically spawned areatriggers, not the ones from AreaTrigger.dbc/db2)
CONDITION_SOURCE_TYPE_CONVERSATION_LINE = 29, // only master
CONDITION_SOURCE_TYPE_MAX = 30 // MAX
};
enum RelationType