again spellUsable

This commit is contained in:
Bunny67
2020-07-07 18:42:52 +03:00
parent c2c3d64a11
commit df0007d7ba
+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) == 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",