Returns whether an item can be used on the player or friendly units


See also Spell functions.

Signature:

isHelpful = IsHelpfulSpell(index, "bookType") or IsHelpfulSpell("name")

Arguments:

  • index - Index of a spell in the spellbook (number, spellbookID)

  • bookType - Type of spellbook (string)

    • pet - The pet's spellbook
    • spell - The player's spellbook

  • name - Name of a spell (string)

Returns:

  • isHelpful - 1 if the spell can be used on the player or friendly units; otherwise nil (1nil)