Skip to content

Commit

Permalink
Load condition - Spell Known: fix overrided spells test
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbuds committed Oct 9, 2023
1 parent 7af5c86 commit b6f70e5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions WeakAuras/Prototypes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1024,6 +1024,7 @@ function WeakAuras.IsPlayerSpellOrOverridesAndBaseIsPlayerSpell(spell)
end

function WeakAuras.IsSpellKnownForLoad(spell, exact)
spell = tonumber(spell) or spell
local result = IsPlayerSpell(spell)
or IsSpellKnownOrOverridesAndBaseIsKnown(spell, false)
or IsSpellKnownOrOverridesAndBaseIsKnown(spell, true)
Expand Down

0 comments on commit b6f70e5

Please sign in to comment.