Cast Druid Forms
Hello! :)
I started developing an addon and I have encounter an issue. (Wotlk Classic) The addon is able to cast the spell of mounts owned by the user. The user can store his flying and ground mount and with a simple macro: “/ms mount” the addon checks if the flying can be done or not (it also checks if possible to use fly in Dalaran), then it casts the spell. With Druid forms, it is an actual spell and it is protected, I have read the documentation and tried to do like a button using the secure template but no luck… (Example) Code:
# Example 1 Code:
# Example 2 Anyone could help me find information or an example to implement a secure way to cast the flying forms of a druid? Thank you! P.S. Here you can have a look at the code (it is my first addon, please forgive me): https://github.com/ravelaso/MountSwitcher |
Secure actions can't be run from the command line except for /click. The only alternatives are by physically clicking a button or running a keybind.
|
This might help, or at least explain if it doesn't help. Sounds like the same problem you are having.
https://github.com/Stanzilla/WoWUIBugs/issues/268 |
They're calling :Click() directly, which carries their addon taint and throws an action blocked error.
This is completely different than the issue with depending on CVar settings, SecureActionButton templates only activate on either up or down, so you have to register both to function reliably. |
Ah .. I totally missed that line
|
All times are GMT -6. The time now is 08:29 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI