View Single Post
04/23/23, 05:11 AM   #3
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,989
If you do this you most probably make other addon hooks fail to work
Lua Code:
  1. ZO_PreHook("JumpToFriend", function()
  2.         MyAddon.TravelToPlayer()
  3.         return true
  4.     end)

return true makes the original functions top working, never called!
So any other hooks which have been applied after your addon will never be called -> broken
I would not do that. If you want your addon do some early animation then prehook, do your animation stuff and let the original function be called afterwards (no return true!).
  Reply With Quote