Originally Posted by myrroddin
Is it possible to securely hook UseQuestLogSpecialItem()? I'd imagine that would solve most of the problems.
|
It's possible to securely hook anything:
Code:
hooksecurefunc("CastSpellByName", function(spell, target)
print("You are casting", spell, "on the", target or "target", "unit.")
end)
But that doesn't solve any problems, since a secure hook just tells you that the function was called, and what arguments (if any) were passed to it; it doesn't magically let you call functions you're not allowed to call from addon code, and it doesn't let you affect the behavior of the original function.