Skip to content

Commit

Permalink
fix: calculate the total heal of absorb correctly when a spell/swing …
Browse files Browse the repository at this point in the history
…is MISSED due to absorb
  • Loading branch information
spamwax committed Aug 2, 2024
1 parent 46c708c commit f32a261
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions EavesDrop.lua
Original file line number Diff line number Diff line change
Expand Up @@ -909,20 +909,22 @@ function EavesDrop:CombatEvent(_, _)
text = _G[missType]
if missType == "ABSORB" and amount then
if fromPlayer or fromPet then
totHealingOut = totHealingOut + amount
else
totHealingIn = totHealingIn + amount
else
totHealingOut = totHealingOut + amount
end
--@debug@
print(
false,
string_format(
"Heal in |cffffff00ABSORB|r is: %s (%d)\n fromPlayer %s, fromPet %s, toPlayer %s, toPet: %s",
"Heal in |cffffff00ABSORB|r is: |cff00aa00%s|r (%d)\n fromPlayer %s, fromPet %s, toPlayer %s, toPet: %s\n event: %s",
spellName or "SWING_MISSED",
amount,
tostring(fromPlayer),
tostring(fromPet),
tostring(toPlayer),
tostring(toPet)
tostring(toPet),
event
)
)
--@end-debug@
Expand Down

0 comments on commit f32a261

Please sign in to comment.