mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 08:55:32 +01:00
DB/SAI: Replace SMART_ACTION_SEND_GO_CUSTOM_ANIM with GameObjectActions
(cherry picked from commit 8516984ffe)
This commit is contained in:
@@ -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;
|
||||
@@ -2337,6 +2337,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 " SI64FMTD " 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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user