It's nothing to be sorry about, I just meant that it shouldn't work.
Some Wow API functions are not meant to be called directly by addons, they are protected.
I'm pretty sure CastSpellByName() is one of them, does this code actually work?
You would probably need to use secure templates to achieve the functionality you're after.
|