- Advanced Death Logs plugin got updates on Endurance Player Value and few bug fixes.

- Max Window Amount options can new be set to 1, before the minimum was 3.
- Fixed a problem with friendly fire tooltip where sometimes it doesn't show up.
- Fixed cooldowns tooltip which wasn't showing rounded numbers (49.99 instead of 50).
- Fixed Warrior's Shield Block which wasn't being count as a cooldown.
- Fixed a problem where sometimes when a hunter pull and reset the boss right after, was causing segments to merge.
This commit is contained in:
tercio
2014-12-11 12:36:12 -02:00
parent 6b9ecf4a4a
commit 47bc71010c
11 changed files with 93 additions and 34 deletions
+17
View File
@@ -232,6 +232,23 @@
end
return s
end
function _detalhes:percent_color (value)
local r, g
if (value < 50) then
r = 255
else
r = _math_floor ( 255 - (value * 2 - 100) * 255 / 100)
end
if (value > 50) then
g = 255
else
g = _math_floor ( (value * 2) * 255 / 100)
end
return r/255, g/255, 0
end
--> unpack more than 1 table
-- http://www.dzone.com/snippets/lua-unpack-multiple-tables