WoWInterface - View Single Post - CastSpellByID() blocked or not?
View Single Post
10-06-14, 12:49 PM   #3
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
You are allowed to use CastSpellByID/CastSpellByName with professions spells (eg. CastSpellByName("Alchemy") to open the tradeskill frame for alchemy) but not for actual spells. Either pet spells are also allowed, or this specific spell is allowed by accident. I would recommend against using either function at all, though, as there are other ways to open the tradeskill frame, and you probably should not be auto-casting pet spells from an addon, as if the spell is being allowed by accident, such behavior may flag your account as using some kind of bot or hack.
Author/maintainer of Grid, PhanxChat, oUF_Phanx, and many more.
Troubleshoot an addon Turn any code into an addon More addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please dont PM me about addon bugs or code questions. Post a comment or forum thread instead!
  Reply With Quote