(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:
NoM0Re
2025-06-02 22:12:34 +02:00
parent bda851552d
commit ddbee38646
2 changed files with 22 additions and 8 deletions
+3
View File
@@ -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