From b758383aa6706a6f94f3d67daa6e8347fbd4bafc Mon Sep 17 00:00:00 2001 From: Bunny67 Date: Sat, 13 Jun 2020 19:42:05 +0300 Subject: [PATCH] fix return for condition type --- WeakAuras/Prototypes.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WeakAuras/Prototypes.lua b/WeakAuras/Prototypes.lua index 97a5982..619473b 100644 --- a/WeakAuras/Prototypes.lua +++ b/WeakAuras/Prototypes.lua @@ -996,7 +996,7 @@ WeakAuras.event_prototypes = { name = "unitisunit", display = L["Unit is Unit"], type = "unit", - init = "UnitIsUnit(unit, extraUnit)", + init = "UnitIsUnit(unit, extraUnit) == 1 and true or false", values = "actual_unit_types_with_specific", test = "unitisunit", store = true, @@ -1068,7 +1068,7 @@ WeakAuras.event_prototypes = { name = "attackable", display = L["Attackable"], type = "tristate", - init = "UnitCanAttack('player', unit)", + init = "UnitCanAttack('player', unit) == 1 and true or false", store = true, conditionType = "bool" },