Returns whether casting a spell consumes a reagent item
See also Spell functions.
Signature:
isConsumable
=
IsConsumableSpell(index,
"bookType")
or
IsConsumableSpell("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:
isConsumable
- 1 if casting the spell consumes a reagent item; otherwise nil (1nil
)