Make LibGroupTalents work now, but still requires regressions

Arguments might still shut be shared from the original call for custom auras.
More functions need to be added to prototypes.
Documentation is needed soon.
This commit is contained in:
NoM0Re
2025-02-06 21:31:45 +01:00
parent 91641b31f2
commit d3c8a9bf3e
29 changed files with 426 additions and 449 deletions
+8 -2
View File
@@ -1079,6 +1079,10 @@ local function TriggerInfoApplies(triggerInfo, unit)
end
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
@@ -1872,10 +1876,12 @@ end
Private.LibGroupTalentsWrapper.Register(function(unit)
Private.StartProfileSystem("bufftrigger2")
local deactivatedTriggerInfos = {}
RecheckActiveForUnitType("group", unit, deactivatedTriggerInfos)
RecheckActiveForUnitType("group", unit .. "pet", deactivatedTriggerInfos)
RecheckActiveForUnitType("group", WeakAuras.unitToPetUnit[unit], deactivatedTriggerInfos)
DeactivateScanFuncs(deactivatedTriggerInfos)
Private.StopProfileSystem("bufftrigger2")
end)
@@ -2482,7 +2488,7 @@ function BuffTrigger.Add(data)
local effectiveIgnoreSelf = (groupTrigger or trigger.unit == "nameplate") and trigger.ignoreSelf
local effectiveRaidRole = groupTrigger and trigger.useRaidRole and trigger.raid_role or nil
local effectiveClass = groupTrigger and trigger.useClass and trigger.class
local effectiveSpecId = groupTrigger and trigger.useActualSpec and trigger.actualSpec
local effectiveSpecId = groupTrigger and trigger.useActualSpec and trigger.actualSpec or nil
local effectiveIgnoreDead = groupTrigger and trigger.ignoreDead
local effectiveIgnoreDisconnected = groupTrigger and trigger.ignoreDisconnected
local effectiveIgnoreInvisible = groupTrigger and trigger.ignoreInvisible