- updated all modules to use the new UnitAura return value that tells who the caster was. now checking if that return == "player" for figuring out if the player cast it or not

This commit is contained in:
Parnic
2009-04-17 01:29:05 +00:00
parent 7d37890a31
commit a5a9e8ac4d
3 changed files with 19 additions and 7 deletions

View File

@ -222,7 +222,8 @@ end
function TargetCC.prototype:GetMaxDebuffDuration(unitName, debuffNames)
local i = 1
local debuff, rank, texture, count, debuffType, duration, endTime, isMine = UnitAura(unitName, i, "HARMFUL")
local debuff, rank, texture, count, debuffType, duration, endTime, unitCaster = UnitAura(unitName, i, "HARMFUL")
local isMine = unitCaster == "player"
local result = {nil, nil, nil}
local remaining
@ -241,7 +242,8 @@ function TargetCC.prototype:GetMaxDebuffDuration(unitName, debuffNames)
i = i + 1;
debuff, rank, texture, count, debuffType, duration, endTime, isMine = UnitAura(unitName, i, "HARMFUL")
debuff, rank, texture, count, debuffType, duration, endTime, unitCaster = UnitAura(unitName, i, "HARMFUL")
isMine = unitCaster == "player"
end
return unpack(result)