From df0007d7baa8a492070803bee194269a3c2905b2 Mon Sep 17 00:00:00 2001 From: Bunny67 Date: Tue, 7 Jul 2020 18:42:52 +0300 Subject: [PATCH] again spellUsable --- WeakAuras/Prototypes.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WeakAuras/Prototypes.lua b/WeakAuras/Prototypes.lua index c95edaa..3d08a08 100644 --- a/WeakAuras/Prototypes.lua +++ b/WeakAuras/Prototypes.lua @@ -2050,7 +2050,7 @@ WeakAuras.event_prototypes = { test = "true", conditionType = "bool", conditionTest = function(state, needle) - return state and state.show and (IsUsableSpell(state.spellname) == needle) + return state and state.show and (IsUsableSpell(state.spellname) and needle == 1) end, conditionEvents = { "SPELL_UPDATE_USABLE", @@ -2065,7 +2065,7 @@ WeakAuras.event_prototypes = { test = "true", conditionType = "bool", conditionTest = function(state, needle) - return state and state.show and (select(2, IsUsableSpell(state.spellname)) == needle); + return state and state.show and (select(2, IsUsableSpell(state.spellname)) and needle == 1); end, conditionEvents = { "SPELL_UPDATE_USABLE",