aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoroffl <offl@users.noreply.github.com>2021-12-09 03:12:15 +0200
committeroffl <offl@users.noreply.github.com>2021-12-09 03:12:15 +0200
commit8516984ffe1a0241b5cfc47f2d0124291503aec1 (patch)
treebf72437df899514d141685af57c0a55d1b2e697b /src
parentd57286521a8bd1d41e6d47ddb05438e972e6779c (diff)
DB/SAI: Replace SMART_ACTION_SEND_GO_CUSTOM_ANIM with GameObjectActions
Diffstat (limited to 'src')
-rw-r--r--src/server/game/AI/SmartScripts/SmartScriptMgr.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp b/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp
index 65b220fe486..f9793c442c3 100644
--- a/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp
+++ b/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp
@@ -2137,6 +2137,17 @@ bool SmartAIMgr::IsEventValid(SmartScriptHolder& e)
return false;
}
+ // Additional check for deprecated
+ switch (e.GetActionType())
+ {
+ // Deprecated
+ case SMART_ACTION_SEND_GO_CUSTOM_ANIM:
+ TC_LOG_WARN("sql.sql.deprecation", "SmartAIMgr: Deprecated action_type(%u), Entry %d SourceType %u Event %u, it might be removed in the future, loaded for now.", e.GetActionType(), e.entryOrGuid, e.GetScriptType(), e.event_id);
+ break;
+ default:
+ break;
+ }
+
if (!CheckUnusedActionParams(e))
return false;