Maybe one could consider the modifier of grace by something like:
local healingBuffs =
[GetSpellInfo(47930)] = function (count, rank, isMine) return (1.0 + 0.02 * count) end, -- Grace
local function calculateHealModifier(unit)
for i = 1, 40 do
local name, rank, texture, count, _, _, _, isMine = UnitBuff(unit, i);
if (mark) then
if (type(mark) == "function") then
mark = mark(count, rank and tonumber(rank:match("(%d+)")), isMine);
modifier = modifier * mark;
How exact is the time calculation of "UnitIncomingHealGet()"?
I use this method pretty directly after a direct heal start event comes in. But sometimes UnitIncomingHealGet(.., GetTime() + 3) doesn't return the amount of a just startet 3sec-heal-cast and somtimes it does.
Even if I use "GetTime() + 3.1" as time-parameter it sometimes doesn't return the just startet 3sec heal cast.
Is this a bug? A not avoidable timing problem (lag, etc)? Or do I something wrong?
I've got the following error message when fighting "Phantasmal Possessors" in Auchenai Crypts:
...AddOns\Grid\libs\LibHealComm-3.0\LibHealComm-3.0.lua:224: bad argument #1 to 'tonumber' (value expected).
I think it had something to do with the Phantasmal Possessors because the error came everytime when fighting with them.
I'm pretty sure I was the only one from the group who had your library loaded and I was playing my warrior when the error occured.