(fix/Prototypes) Power: Combo points not updating in vehicle
(cherry picked from commit e2c154de9cde08f15db84b0572a0362be1ff2660)
This commit is contained in:
@@ -2681,16 +2681,16 @@ Private.event_prototypes = {
|
|||||||
|
|
||||||
if trigger.powertype == 4 then
|
if trigger.powertype == 4 then
|
||||||
local _, class = UnitClass("player")
|
local _, class = UnitClass("player")
|
||||||
AddUnitEventForEvents(result, unit, "UNIT_COMBO_POINTS")
|
result.events = result.events or {}
|
||||||
AddUnitEventForEvents(result, unit, "UNIT_TARGET")
|
tinsert(result.events, "UNIT_COMBO_POINTS")
|
||||||
|
AddUnitEventForEvents(result, 'player', "UNIT_TARGET")
|
||||||
|
AddUnitEventForEvents(result, 'vehicle', "UNIT_TARGET")
|
||||||
if class == "DRUID" then
|
if class == "DRUID" then
|
||||||
AddUnitEventForEvents(result, unit, "UNIT_MODEL_CHANGED")
|
AddUnitEventForEvents(result, unit, "UNIT_MODEL_CHANGED")
|
||||||
end
|
end
|
||||||
-- For units not in multiUnitUnits, add FRAME_UPDATE to ensure smooth power updates
|
-- For units not in multiUnitUnits, add FRAME_UPDATE to ensure smooth power updates
|
||||||
elseif unit and not Private.multiUnitUnits[unit] then
|
elseif unit and not Private.multiUnitUnits[unit] then
|
||||||
if not result.events then
|
result.events = result.events or {}
|
||||||
result.events = {}
|
|
||||||
end
|
|
||||||
tinsert(result.events, "FRAME_UPDATE")
|
tinsert(result.events, "FRAME_UPDATE")
|
||||||
else
|
else
|
||||||
AddUnitEventForPowerEvents(result, unit, powerType)
|
AddUnitEventForPowerEvents(result, unit, powerType)
|
||||||
|
|||||||
@@ -247,8 +247,10 @@ local function DebugPrintDiff(diff, id, uid)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local function Diff(ours, theirs)
|
local function Diff(ours, theirs)
|
||||||
local ignored = WeakAuras.Mixin({}, OptionsPrivate.Private.internal_fields,
|
local ignored = WeakAuras.Mixin({},
|
||||||
OptionsPrivate.Private.non_transmissable_fields)
|
OptionsPrivate.Private.internal_fields,
|
||||||
|
OptionsPrivate.Private.non_transmissable_fields
|
||||||
|
)
|
||||||
|
|
||||||
-- generates a diff which WeakAuras.Update can use
|
-- generates a diff which WeakAuras.Update can use
|
||||||
local debug = false
|
local debug = false
|
||||||
|
|||||||
Reference in New Issue
Block a user