(fix/Power): fix regression causing stuttery power updates by re-adding FRAME_UPDATE for non-multi-unit units
This change reintroduces FRAME_UPDATE for units not in multiUnitUnits (e.g., player, target) to ensure smooth power updates, similar to UNIT_POWER_FREQUENT in retail. The new logic tho avoids registering other unit events when FRAME_UPDATE is used, improving performance and preventing multiple updates per frame, than before.
This commit is contained in:
@@ -694,6 +694,9 @@ local function RunTriggerFunc(allStates, data, id, triggernum, event, arg1, arg2
|
||||
untriggerCheck = true;
|
||||
end
|
||||
elseif (data.statesParameter == "unit") then
|
||||
if event == "FRAME_UPDATE" and not Private.multiUnitUnits[data.trigger.unit] then
|
||||
arg1 = data.trigger.unit
|
||||
end
|
||||
if arg1 then
|
||||
if Private.multiUnitUnits[data.trigger.unit] then
|
||||
if data.trigger.unit == "group" and IsInRaid() and Private.multiUnitUnits.party[arg1] then
|
||||
|
||||
Reference in New Issue
Block a user