Guys thanks, I did not know about these two API calls.
However both IsSpellKnown(213771) and IsPlayerSpell(213771) (Swipe) return false, even when I know the spell and have just casted it!
I have also noticed that the API call IsUsableSpell() works fine for other spells, eg:
local playerSpellBarkskinUseable = IsUsableSpell("Barkskin");
which correctly returns "true" on my 120 druid and "false" on my level 23 druid.
I have not tried those two functions on "Barkskin" to see how they perform since the "IsUsableSpell" works as intended.
|