(fix/Prototypes) Power: Combo points not updating in vehicle

(cherry picked from commit e2c154de9cde08f15db84b0572a0362be1ff2660)
This commit is contained in:
NoM0Re
2026-01-22 16:25:17 +01:00
committed by andrew6180
parent e254507cc3
commit afbb6c2a96
2 changed files with 9 additions and 7 deletions
+5 -5
View File
@@ -2681,16 +2681,16 @@ Private.event_prototypes = {
if trigger.powertype == 4 then
local _, class = UnitClass("player")
AddUnitEventForEvents(result, unit, "UNIT_COMBO_POINTS")
AddUnitEventForEvents(result, unit, "UNIT_TARGET")
result.events = result.events or {}
tinsert(result.events, "UNIT_COMBO_POINTS")
AddUnitEventForEvents(result, 'player', "UNIT_TARGET")
AddUnitEventForEvents(result, 'vehicle', "UNIT_TARGET")
if class == "DRUID" then
AddUnitEventForEvents(result, unit, "UNIT_MODEL_CHANGED")
end
-- For units not in multiUnitUnits, add FRAME_UPDATE to ensure smooth power updates
elseif unit and not Private.multiUnitUnits[unit] then
if not result.events then
result.events = {}
end
result.events = result.events or {}
tinsert(result.events, "FRAME_UPDATE")
else
AddUnitEventForPowerEvents(result, unit, powerType)
+4 -2
View File
@@ -247,8 +247,10 @@ local function DebugPrintDiff(diff, id, uid)
end
local function Diff(ours, theirs)
local ignored = WeakAuras.Mixin({}, OptionsPrivate.Private.internal_fields,
OptionsPrivate.Private.non_transmissable_fields)
local ignored = WeakAuras.Mixin({},
OptionsPrivate.Private.internal_fields,
OptionsPrivate.Private.non_transmissable_fields
)
-- generates a diff which WeakAuras.Update can use
local debug = false