Precision change (fixed decimal issue)
Scott King [01-16-14 - 04:23]
Precision change (fixed decimal issue)
diff --git a/PortraitHealth.lua b/PortraitHealth.lua
index cebb9b1..452c967 100755
--- a/PortraitHealth.lua
+++ b/PortraitHealth.lua
@@ -70,7 +70,7 @@ function HealthPercentage()
end
-- reformat health without decimals
- local h = string.format("%0f",TargetPercentHealth);
+ local h = string.format("%.0f",TargetPercentHealth);
-- change the portrait to show current health
if UnitIsDead("target") then