Returns whether a spell is currently being used
See also Spell functions.
Signature:
isCurrent = IsCurrentSpell(index, "bookType") or IsCurrentSpell("name")
Arguments:
index- Index of a spell in the spellbook (number, spellbookID)bookType- Type of spellbook (string)pet- The pet's spellbookspell- The player's spellbook
name- Name of a spell (string)
Returns:
isCurrent- 1 if the spell is currently being cast, is waiting for the user to choose a target, is a repeating spell which is currently repeating, or is the open trade skill; otherwise nil (1nil)