From b1ce30d91ccf5a79aa9915b4cc78620565f513aa Mon Sep 17 00:00:00 2001 From: NoM0Re Date: Wed, 5 Feb 2025 20:50:42 +0100 Subject: [PATCH 1/2] (fix) BT2: Hostility Check --- WeakAuras/BuffTrigger2.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/WeakAuras/BuffTrigger2.lua b/WeakAuras/BuffTrigger2.lua index 86730b6..bf7bb09 100644 --- a/WeakAuras/BuffTrigger2.lua +++ b/WeakAuras/BuffTrigger2.lua @@ -1038,6 +1038,10 @@ local function TriggerInfoApplies(triggerInfo, unit) return false end + if triggerInfo.hostility and WeakAuras.GetPlayerReaction(unit) ~= triggerInfo.hostility then + return false + end + if triggerInfo.unit == "group" then local isPet = WeakAuras.UnitIsPet(unit) if triggerInfo.includePets == "PetsOnly" and not isPet then From 93487ebc8c97fb0dc3314f687a01894978ee530b Mon Sep 17 00:00:00 2001 From: NoM0Re Date: Sat, 8 Feb 2025 18:34:20 +0100 Subject: [PATCH 2/2] (fix/OptionsFrame) not using saved framepostion --- WeakAurasOptions/OptionsFrames/OptionsFrame.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/WeakAurasOptions/OptionsFrames/OptionsFrame.lua b/WeakAurasOptions/OptionsFrames/OptionsFrame.lua index 1bb0e19..5fa015e 100644 --- a/WeakAurasOptions/OptionsFrames/OptionsFrame.lua +++ b/WeakAurasOptions/OptionsFrames/OptionsFrame.lua @@ -124,6 +124,10 @@ function OptionsPrivate.CreateFrame() db.frame = nil end + if odb.frame then + xOffset, yOffset = odb.frame.xOffset, odb.frame.yOffset + end + if not (xOffset and yOffset) then xOffset = GetScreenWidth() / 2 yOffset = GetScreenHeight() - defaultHeight / 2