(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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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