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 /src/server/game/Scripting/ScriptLoader.cpp | |
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.
Diffstat (limited to 'src/server/game/Scripting/ScriptLoader.cpp')
0 files changed, 0 insertions, 0 deletions