Returns whether a spell is the standard melee Attack spell


See also Spell functions.

Signature:

isAttack = IsAttackSpell(index, "bookType") or IsAttackSpell("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:

  • isAttack - 1 if the spell enables/disables melee auto-attack; otherwise nil (1nil)