diff options
-rw-r--r-- | sql/updates/world/3.3.5/2021_12_09_04_world.sql | 3 | ||||
-rw-r--r-- | src/server/game/AI/SmartScripts/SmartScriptMgr.cpp | 11 |
2 files changed, 14 insertions, 0 deletions
diff --git a/sql/updates/world/3.3.5/2021_12_09_04_world.sql b/sql/updates/world/3.3.5/2021_12_09_04_world.sql new file mode 100644 index 00000000000..608b3724073 --- /dev/null +++ b/sql/updates/world/3.3.5/2021_12_09_04_world.sql @@ -0,0 +1,3 @@ +-- +UPDATE `smart_scripts` SET `action_type` = 147, `action_param1` = 1 WHERE `action_type` = 93 AND `action_param1` = 0; +UPDATE `smart_scripts` SET `action_type` = 147, `action_param1` = 4 WHERE `action_type` = 93 AND `action_param1` = 3; 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; |