Skip to content

Commit

Permalink
Added workaround for direct heals not reported by client when HealCom…
Browse files Browse the repository at this point in the history
…m is present (#1198)
  • Loading branch information
namreeb authored Apr 21, 2024
1 parent 57835e6 commit df355e0
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions ElvUI_Libraries/Core/oUF/elements/healthprediction.lua
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,21 @@ local function Update(self, event, unit)
local otherIncomingHeal = 0
local hasOverHealAbsorb = false

-- Kludge to override value for heals not reported by WoW client (ref: https://github.com/Stanzilla/WoWUIBugs/issues/163)
-- There may be other bugs that this workaround does not catch, but this does fix Priest PoH
if(HealComm and not oUF.isRetail) then
local healAmount = HealComm:GetHealAmount(GUID, HealComm.CASTED_HEALS) or 0
if(healAmount > 0) then
if(myIncomingHeal == 0 and unit == 'player') then
myIncomingHeal = healAmount
end

if(allIncomingHeal == 0) then
allIncomingHeal = healAmount
end
end
end

if(healAbsorb > allIncomingHeal) then
healAbsorb = healAbsorb - allIncomingHeal
allIncomingHeal = 0
Expand Down

0 comments on commit df355e0

Please sign in to comment.