WoWInterface - View Single Post - PTR 6.2.2 Nameplate changes
View Single Post
09-02-15, 12:27 PM   #9
A Deviate Faerie Dragon
Join Date: Sep 2006
Posts: 12
Originally Posted by Resike View Post
Anyone figured out how to porperly show health values and health max values with nameplates now?
The only way is to use the UnitHealthMax API when you mouse over a nameplate, then cache that value so you can use it later. Multiply the return from healthBar:GetValue() with the cached MaxHealth to get a guesstimate of the current exact health value.

This will obviously lead to examples where the exact value isn't 100% correct, as a player could receive or lose a health buff right after you cached his MaxHealth. In that case you would need to mouse over that player once more to grab the new MaxHealth.

Suffice to say, the current implementation is not ideal. Hopefully Blizzard will correct it sooner rather than later (and preferrably sooner than Soon™)

Last edited by Blazeflack : 09-02-15 at 12:33 PM.