C_SpellBook.IsSpellBookItemHarmful

From Warcraft Wiki
Jump to navigation Jump to search

Returns true if the SpellBookIem can be cast on hostile targets

isHarmful = C_SpellBook.IsSpellBookItemHarmful(spellBookItemSlotIndex, spellBookItemSpellBank)

Arguments

spellBookItemSlotIndex
number
spellBookItemSpellBank
Enum.SpellBookSpellBank
Value Field Description
0 Player
1 Pet

Returns

isHarmful
boolean