Skip to content

Commit defd97f

Browse files
committed
System - Fix for isKnown on spells the override other spells
1 parent a6e86a3 commit defd97f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

System/Functions/Spell.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,10 +361,11 @@ end
361361

362362
-- if br.isKnown(106832) then
363363
function br.isKnown(spellID)
364+
local baseSpellID = br._G.FindBaseSpellByID(spellID)
364365
local _, _, spellInBookType = br.getSpellInSpellBook(spellID)
365366
return spellID ~= nil and spellInBookType ~= "Future Spell" and
366367
( --[[spellInBookType ~= nil or]] br._G.IsPlayerSpell(tonumber(spellID))
367-
or br._G.IsSpellKnown(spellID)) -- or spellInBookType == "Spell")
368+
or br._G.IsSpellKnown(spellID) or br._G.IsPlayerSpell(tonumber(baseSpellID) or br._G.IsSpellKnown(baseSpellID))) -- or spellInBookType == "Spell")
368369
end
369370

370371
function br.isActiveEssence(spellID)

0 commit comments

Comments
 (0)