From b1ce30d91ccf5a79aa9915b4cc78620565f513aa Mon Sep 17 00:00:00 2001 From: NoM0Re Date: Wed, 5 Feb 2025 20:50:42 +0100 Subject: [PATCH] (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