- Fixed an issue with Calc Leech plugin.

This commit is contained in:
Tercio
2016-07-20 13:03:54 -03:00
parent 56b7980874
commit e1f9bb8811
2 changed files with 14 additions and 10 deletions
@@ -11,7 +11,7 @@ do
--> minimal details version required to run this plugin
local MINIMAL_DETAILS_VERSION_REQUIRED = 81
local CLEECH_VERSION = "v1.1"
local CLEECH_VERSION = "v1.2"
--> create a plugin object
local calcLeech = Details:NewPluginObject ("Details_CalcLeech", DETAILSPLUGIN_ALWAYSENABLED)
@@ -80,10 +80,12 @@ do
local total_leech = 0
for i = 1, 40 do
local name, _, _, _, _, _, _, source, _, _, id, _, _, _, leech = UnitAura (target_name, i)
if (name and id == 184671 and source) then
rosterLeechAmount [UnitName (source)] = leech
total_leech = total_leech + leech
local name, _, _, _, _, _, _, source, _, _, id, _, _, _, _, _, leech = UnitAura (target_name, i)
if (type (leech) == "number") then
if (name and id == 184671 and source) then
rosterLeechAmount [UnitName (source)] = leech
total_leech = total_leech + leech
end
end
end