diff options
| author | Discover- <amort11@hotmail.com> | 2013-12-17 10:23:31 +0100 |
|---|---|---|
| committer | Discover- <amort11@hotmail.com> | 2013-12-17 10:23:31 +0100 |
| commit | b5e333255b38c61deda8d6ae519c51097d5214d2 (patch) | |
| tree | 178186b6a43422265a3abe7a65be41c34b151380 | |
| parent | 20a22662df5442ba9b171f2cde22be50ed75bdc3 (diff) | |
DB/SAI: Fix two wrong action_types that would make the creature cast the Death Touch spell on no target (SMART_TARGET_NONE) instead of move to given target_x/y/z/o co-ordinates.
The person who wrote this script accidently used action_type 11 (SMART_ACTION_CAST) instead of 69 (SMART_ACTION_MOVE_TO_POS), and since the action_param1 field of SMART_ACTION_MOVE_TO_POS is the motion id (point id given back to SMART_EVENT_MOVEMENTINFORM), it was set to 5. Ironically, the first parameter of SMART_ACTION_CAST is the spell id and it was spell id 5 is Death Touch.
However this script would do nothing because I changed it so that SMART_TARGET_NONE no longer functioned as SMART_TARGET_ACTION_INVOKER in this commit: 9653576cb4cc9449898d6af691c045d68e9361c5. Before this commit, though, it WOULD cast Death Touch. Fun fun fun.
| -rw-r--r-- | sql/updates/world/2013_12_17_00_world_sai.sql | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/updates/world/2013_12_17_00_world_sai.sql b/sql/updates/world/2013_12_17_00_world_sai.sql new file mode 100644 index 00000000000..3ebe6e95618 --- /dev/null +++ b/sql/updates/world/2013_12_17_00_world_sai.sql @@ -0,0 +1 @@ +UPDATE `smart_scripts` SET `action_type`=69 WHERE `entryorguid`=137300 AND `id` IN (19,20);
|
