DB/SAI: Replace SMART_ACTION_SEND_GO_CUSTOM_ANIM with GameObjectActions

(cherry picked from commit 8516984ffe)
This commit is contained in:
offl
2021-12-09 03:12:15 +02:00
committed by Shauren
parent ab0805d048
commit 3cfca16359
2 changed files with 14 additions and 0 deletions

View File

@@ -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;

View File

@@ -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;