From 04cb5989038692468f2e6a8a6bbb63b1784640e0 Mon Sep 17 00:00:00 2001 From: Bunny67 Date: Sat, 13 Jun 2020 17:01:35 +0300 Subject: [PATCH] fix #19 --- WeakAuras/Prototypes.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WeakAuras/Prototypes.lua b/WeakAuras/Prototypes.lua index 52d43ed..dde9da1 100644 --- a/WeakAuras/Prototypes.lua +++ b/WeakAuras/Prototypes.lua @@ -4706,7 +4706,7 @@ WeakAuras.event_prototypes = { values = "actual_unit_types_with_specific", conditionType = "unit", conditionTest = function(state, unit, op) - return state and state.show and state.unit and (UnitIsUnit(state.sourceUnit, unit) == (op == "==")) + return state and state.show and state.unit and ((UnitIsUnit(state.sourceUnit, unit) == 1 and true or false) == (op == "==")) end, store = true, hidden = true, @@ -4730,7 +4730,7 @@ WeakAuras.event_prototypes = { init = "unit .. '-target'", conditionType = "unit", conditionTest = function(state, unit, op) - return state and state.show and state.destUnit and (UnitIsUnit(state.destUnit, unit) == (op == "==")) + return state and state.show and state.destUnit and ((UnitIsUnit(state.destUnit, unit) == 1 and true or false) == (op == "==")) end, store = true, enable = function(trigger) return not trigger.use_inverse end,