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)
This commit is contained in:
treeston
2017-02-26 15:30:15 +01:00
committed by joschiwald
parent 31eb40439e
commit 9c36dd7e94
3 changed files with 15 additions and 5 deletions
@@ -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;