From 551e367ec4db1228ec0aa575abf5f5f881e55502 Mon Sep 17 00:00:00 2001 From: Parnic Date: Sat, 30 Jul 2011 17:14:15 +0000 Subject: [PATCH] - new 'max health' formula from Nibelheim over on WoWInterface (thanks!) --- modules/Vengeance.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/Vengeance.lua b/modules/Vengeance.lua index 825a9b3..2b4de14 100644 --- a/modules/Vengeance.lua +++ b/modules/Vengeance.lua @@ -98,7 +98,8 @@ function Vengeance.prototype:UpdateMax(event, unit) return end - self.max = floor(0.1*UnitHealthMax(self.unit)) + local Stam, MaxHealth = UnitStat(self.unit, 3), UnitHealthMax(self.unit) + self.max = floor(Stam + (MaxHealth - ((Stam - 19) * 14) - 6) / 10) self:Update() end