- Fixed a problem with the Calc Leech plugin.

- Fixed a problem when reporting buff uptime.
This commit is contained in:
Tercio
2016-05-27 13:53:06 -03:00
parent c288ae6a79
commit 152b043cba
10 changed files with 13 additions and 8 deletions
+8 -6
View File
File diff suppressed because one or more lines are too long
+3
View File
@@ -441,6 +441,9 @@ function atributo_misc:ReportSingleCooldownLine (misc_actor, instancia)
end
local buff_format_name = function (spellid)
if (_type (spellid) == "string") then
return spellid
end
return _detalhes:GetSpellLink (spellid)
end
local buff_format_amount = function (t)
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -11,7 +11,7 @@ do
--> minimal details version required to run this plugin
local MINIMAL_DETAILS_VERSION_REQUIRED = 81
local CLEECH_VERSION = "v1.0"
local CLEECH_VERSION = "v1.1"
--> create a plugin object
local calcLeech = Details:NewPluginObject ("Details_CalcLeech", DETAILSPLUGIN_ALWAYSENABLED)
@@ -81,7 +81,7 @@ do
for i = 1, 40 do
local name, _, _, _, _, _, _, source, _, _, id, _, _, _, leech = UnitAura (target_name, i)
if (name and id == 184671) then
if (name and id == 184671 and source) then
rosterLeechAmount [UnitName (source)] = leech
total_leech = total_leech + leech
end