From b3685d3b9bb9d40915f6ad47c94e973ed709711b Mon Sep 17 00:00:00 2001 From: Bunny67 Date: Wed, 8 Jul 2020 17:18:35 +0300 Subject: [PATCH] Revert "Revert "again spellUsable"" This reverts commit be061635900a8a559be92933b4fbb20417719912. --- WeakAuras/Prototypes.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WeakAuras/Prototypes.lua b/WeakAuras/Prototypes.lua index 3d08a08..2bcb83a 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) and needle == 1) + return state and state.show and ((IsUsableSpell(state.spellname) == 1 and true or false) == (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)) and needle == 1); + return state and state.show and ((select(2, IsUsableSpell(state.spellname)) == 1 and true or false) == (needle == 1)); end, conditionEvents = { "SPELL_UPDATE_USABLE",