aboutsummaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authortreeston <treeston.mmoc@gmail.com>2016-09-09 15:01:42 +0200
committerjoschiwald <joschiwald.trinity@gmail.com>2017-02-26 15:30:15 +0100
commit9c36dd7e947d483767b545b79e586c95e29e4305 (patch)
tree0dc106dfecf9cce3ae9ed922b62b3b80170b4977 /sql
parent31eb40439e0ce92cb728268946138ebf6a5e66b3 (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. (cherry picked from commit e69a483aa942c1c6c4bd9b5fa47139f89643b8d5) Derp. Build fix. (cherry picked from commit 9180bcd404ff0a89144bbe834a2efe189bd0eb86)
Diffstat (limited to 'sql')
-rw-r--r--sql/updates/world/master/2017_02_26_03_world_2016_09_09_01_world.sql4
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/updates/world/master/2017_02_26_03_world_2016_09_09_01_world.sql b/sql/updates/world/master/2017_02_26_03_world_2016_09_09_01_world.sql
new file mode 100644
index 00000000000..addcd9c17dd
--- /dev/null
+++ b/sql/updates/world/master/2017_02_26_03_world_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;