Skip to content

Commit

Permalink
System - Fix for isKnown on spells the override other spells
Browse files Browse the repository at this point in the history
  • Loading branch information
CuteOne committed Aug 31, 2024
1 parent a6e86a3 commit defd97f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion System/Functions/Spell.lua
Original file line number Diff line number Diff line change
Expand Up @@ -361,10 +361,11 @@ end

-- if br.isKnown(106832) then
function br.isKnown(spellID)
local baseSpellID = br._G.FindBaseSpellByID(spellID)
local _, _, spellInBookType = br.getSpellInSpellBook(spellID)
return spellID ~= nil and spellInBookType ~= "Future Spell" and
( --[[spellInBookType ~= nil or]] br._G.IsPlayerSpell(tonumber(spellID))
or br._G.IsSpellKnown(spellID)) -- or spellInBookType == "Spell")
or br._G.IsSpellKnown(spellID) or br._G.IsPlayerSpell(tonumber(baseSpellID) or br._G.IsSpellKnown(baseSpellID))) -- or spellInBookType == "Spell")
end

function br.isActiveEssence(spellID)
Expand Down

0 comments on commit defd97f

Please sign in to comment.