aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoroffl <offl@users.noreply.github.com>2021-10-14 23:30:41 +0300
committeroffl <offl@users.noreply.github.com>2021-10-14 23:30:41 +0300
commit9e78329c8b8294f3d4bc6e6ca4e6abfe6d53b917 (patch)
tree605688dc8c1f310e45caf1b6c4afa1651c158dff
parent1053345692750d978ed44eef6cc7110064c423fc (diff)
Core/SAI: Make SMART_EVENT_WAYPOINT_START & SMART_EVENT_CHARMED_TARGET deprecated
Deprecated events and actions will be removed after 2 weeks
-rw-r--r--src/server/game/AI/SmartScripts/SmartScriptMgr.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp b/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp
index e11c75a63dc..4b64a5b3089 100644
--- a/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp
+++ b/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp
@@ -1439,6 +1439,8 @@ bool SmartAIMgr::IsEventValid(SmartScriptHolder& e)
{
// Deprecated
case SMART_EVENT_EVENT_PHASE_CHANGE:
+ case SMART_EVENT_WAYPOINT_START:
+ case SMART_EVENT_CHARMED_TARGET:
TC_LOG_WARN("sql.sql.deprecation", "SmartAIMgr: Deprecated event_type(%u), Entry %d SourceType %u Event %u Action %u, it might be removed in the future, loaded for now.", e.GetEventType(), e.entryOrGuid, e.GetScriptType(), e.event_id, e.GetActionType());
break;
default: