PitBull Unit Frames 4.0

1146 - A Lua text for incoming heals

What is the enhancement in mind? How should it look and feel?

A new text Lua: Incoming heal.
A dynamic text that display the value of a heal spell that you cast on a target (absolute or short).
For instance, you cast a "greater heal" on a friendly raid unit, it display on the life bar a green "+50 000" while you cast. And nothing while you don't cast obviously. It would display only the heal that YOU cast, not every single heal all the healers are casting in the raid, that would be confusing.
I found this feature on many other raid frames addons, it's something quite popular amongst healers. I tried to copy some code from the lua tag from Shadowed, but it brings me some errors while I don't cast. I modified it by myslef, it works only on my unit frame in the raid ui but not on friendlies : |

Please provide any additional information below.

This is the Shadowed code for incoming heal tag - Works with UNIT_HEAL_PREDICTION - Works fine in Shadowed but gives errors in pitbull

function(unit, unitOwner, fontString)
    local heal = UnitGetIncomingHeals(unit) 
return heal and heal > 0 and string.format("%d", heal)
end

This is the tweaked code that works in Pitbull, but sadly only on my personnal character Raid Unit Frame, when I heal myself not on friendlies in raid with me.

local heal = UnitGetIncomingHeals(unit)
if heal > 0
then return "+%d", heal
end

Thanks in advance for your feedback

Trya - Hyjal [Eu-Fr]

User When Change
Trya01Hyjal Jul 28, 2016 at 17:03 UTC Create

You must login to post a comment. Don't have an account? Register to get one!

Facts

Reported
Jul 28, 2016
Status
New - Issue has not had initial review yet.
Type
Enhancement - A change which is intended to better the project in some way
Priority
Medium - Normal priority.
Votes
0
Component
LuaTexts

Reported by

Possible assignees