Alright. I got a hard one (pun?) for you guys. Maybe not, but I can't figure it out with my verrrrry limited knowledge in scripting.
This is my current player HP% script:
local s = Status(unit)
if s then
return s
end
return "|cff00CD00%s",Percent(HP(unit),MaxHP(unit))
|
This script works perfectly for player/targets target/party/raid
HOWEVER
For target and players pet... it doesn't refresh. For the target you have to untarget it then retarget and it freezes at whatever that is... so I currently have to use this:
local s = Status(unit)
if s then
return s
end
return "|cff00CD00%s%%",Percent(HP(unit),MaxHP(unit))
|
Which gives me the extra % on it, which I do not want...
Query: How can I remove the added % on it while having it refresh on it's own?