Would this work, to get accurate results for the resurrection cast time for everybody, with or without KBM?
Register Event.Combat.heal(func, stuff, stuff) and do the following psueudocode?
Code:
local healIsRes ={resName1, resName2, etc}
local ressers = {}
function func(unit)
Inspect.Unit.Castbar(unit)
if not healIsRes[unit.abilityName] then return end
getUnitName(unit)
local info
table.insert(ressers, info = {getUnitName, unit.remaining})
table.sort(ressers, sort by unit.remaining)
displayCode(ressers)
if castBar.unit.remaining == 0 then
table.remove(ressers, unit)
table.remove.(everything info contains to wipe it)
end At least something a whole lot less messy than my psueudocode anyway. The point being is you can use the unit cast bar to retrieve your information, which should be accurate and impartial regardless of talents, specs, or anything else that might corrupt your cast times.
Bookmarks