(fix) BT2: Hostility Check

This commit is contained in:
NoM0Re
2025-02-05 20:50:42 +01:00
committed by GitHub
parent a6beb4cc34
commit b1ce30d91c
+4
View File
@@ -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