View Single Post
09-01-12, 06:21 AM   #8
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
No your problem is the condition inside the hook function. Just print all the ... variables and you will find out why. You don't need another surrounding frame. You just have to fix the condition. Make sure not to get into a loophole.

Lua Code:
  1. --hook
  2. hooksecurefunc(DurabilityFrame, "SetPoint", function(...)
  3.   local a, b, c, d, e = ...
  4.   print(a)
  5.   print(b)
  6.   print(c)
  7.   print(d)
  8.   print(e)
  9.   --DurabilityFrame:SetPoint()--make sure to only call this if needed
  10. end)
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)

Last edited by zork : 09-01-12 at 06:25 AM.
  Reply With Quote