aboutsummaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorTreeston <treeston.mmoc@gmail.com>2018-02-13 16:38:28 +0100
committerShauren <shauren.trinity@gmail.com>2021-06-20 21:42:33 +0200
commit06b5b8d8b7ac3da65013ccc0f03599ee9dee2163 (patch)
tree26c98bea00cbe554c403db4541155ea84f9aa27f /sql
parent6c5e170d9f02a051fc26a089627567b915f5c859 (diff)
Scripts/SmartAI: SMART_TARGET_INVOKER cleanup step 1. The core will now log errors on start-up if SMART_TARGET_INVOKER abuse is found, but will continue to load the scripts as deprecated for now.
Note that a lot of these scripts may either not currently work, not work reliably, or may be prone to breaking unexpectedly when core internals change. SMART_TARGET_INVOKER is undefined behavior on any event that doesn't directly specify its invoker. (We are considering options for allowing INVOKER to make sense in timed action lists in a reliable fashion, so they are exempted at this time.) (cherry picked from commit 482328bddf1c5fcd367268525d2f904793239bc9)
Diffstat (limited to 'sql')
-rw-r--r--sql/updates/world/master/2021_06_20_05_world_2018_02_13_04_world.sql2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/updates/world/master/2021_06_20_05_world_2018_02_13_04_world.sql b/sql/updates/world/master/2021_06_20_05_world_2018_02_13_04_world.sql
new file mode 100644
index 00000000000..2a99ff63b5a
--- /dev/null
+++ b/sql/updates/world/master/2021_06_20_05_world_2018_02_13_04_world.sql
@@ -0,0 +1,2 @@
+-- SMART_ACTION_FLEE_FOR_ASSIST (25) does not need a target
+UPDATE `smart_scripts` SET `target_type`=0 WHERE `action_type`=25;