aboutsummaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authortreeston <treeston.mmoc@gmail.com>2016-09-09 15:01:42 +0200
committertreeston <treeston.mmoc@gmail.com>2016-09-09 15:01:42 +0200
commite69a483aa942c1c6c4bd9b5fa47139f89643b8d5 (patch)
tree51c469a0e079b310f1238009d2ca24aedecf6b02 /sql
parent3219346888ba3beb43424c60764849ec0ea030c5 (diff)
AI/SmartAI: Fix an issue where SmartAI creatures would not properly follow their owner on evade. Also fix a bug where creatures with INHABIT_ROOT would get stuck in evade under certain conditions.
This allows us to fix quest 12261 (No Place to Run). Closes #16291.
Diffstat (limited to 'sql')
-rw-r--r--sql/updates/world/3.3.5/2016_09_09_01_world.sql4
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/updates/world/3.3.5/2016_09_09_01_world.sql b/sql/updates/world/3.3.5/2016_09_09_01_world.sql
new file mode 100644
index 00000000000..addcd9c17dd
--- /dev/null
+++ b/sql/updates/world/3.3.5/2016_09_09_01_world.sql
@@ -0,0 +1,4 @@
+-- Fix SAI for quest "No Place to Run" (issue #16291)
+UPDATE `creature_template` SET `unit_flags`=`unit_flags`&~0x4 WHERE `entry`=27430;
+UPDATE `smart_scripts` SET `event_flags`=`event_flags`|0x200 WHERE `entryorguid`=2743000 AND `source_type`=9;
+UPDATE `smart_scripts` SET `event_type`=54,`comment`="Destructive Ward - On Just Summoned - Run Script" WHERE `entryorguid`=27430 AND `id`=0;