update WeakAuras.IsSpellKnown

This commit is contained in:
Bunny67
2020-06-13 18:35:44 +03:00
parent 5d45e5975f
commit b0b9ed4d30
+8 -4
View File
@@ -617,11 +617,15 @@ function WeakAuras.IsSpellKnownForLoad(spell, exact)
end
function WeakAuras.IsSpellKnown(spell, pet)
if (spell and tonumber(spell)) then
if (pet) then
return IsSpellKnown(spell, pet);
if (spell) then
if tonumber(spell) then
if (pet) then
return IsSpellKnown(spell, pet);
end
return IsSpellKnown(spell);
else
return (GetSpellInfo(spell)) and true or false
end
return IsSpellKnown(spell);
end
return false
end