Revert "Revert "again spellUsable""

This reverts commit be06163590.
This commit is contained in:
Bunny67
2020-07-08 17:18:35 +03:00
parent be06163590
commit b3685d3b9b
+2 -2
View File
@@ -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",