View Single Post
06-21-19, 06:37 PM   #3
myrroddin
A Pyroguard Emberseer
 
myrroddin's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 1,240
Quick differences (not comprehensive):
Lua Code:
  1. IsUsableSpell() -- you can use it because it is available to your class and spec, and is not on cooldown
  2. IsPlayerSpell() -- a spell player characters can cast, unlike a spell is that is NPC exclusive (check spellID, not spell name because there are spells with the same name that aren't the same)
  3. IsSpellKnown() -- your character knows the spell because of class and spec; it is in your spellbook. Could also be a pet spell (I'm not 100% on that) that your combat pet can cast
  Reply With Quote