From b0b9ed4d304ae6c3f7e591c7896f4d5e60525335 Mon Sep 17 00:00:00 2001 From: Bunny67 Date: Sat, 13 Jun 2020 18:35:44 +0300 Subject: [PATCH] update WeakAuras.IsSpellKnown --- WeakAuras/Prototypes.lua | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/WeakAuras/Prototypes.lua b/WeakAuras/Prototypes.lua index ba8f7b0..97a5982 100644 --- a/WeakAuras/Prototypes.lua +++ b/WeakAuras/Prototypes.lua @@ -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