View Single Post
Old 06/02/08, 2:08 PM   #24 (permalink)
 giansm
Let's Paint, Exercise, and Lifebloom
 
giansm's Avatar
 
Night Elf Druid
 
Proudmoore
I've never liked the way those addons determine overhealing anyway. If I remember correctly, they rely on the fact that UnitHealth() updates slowly and they do something like:

1) Receive an event that says I healed a unit
2) Check how much the heal was for
3) Subtract UnitMaxHealth() - UnitHealth(), use that as the health deficit
4) Compare #2 and #3.

Seems kind of unreliable since it basically relies on slow updates to UnitHealth, since the UnitHealth call is made after the heal event is received. By the way I just checked Violation and SCT, they both do it this way. Not sure about other addons since those are the only two I have that calculate overhealing.
 
User is offline.
Reply With Quote