For everyone making healing profiles:
When creating your autolowhp targeting functions you might be interested in adding the targets hp to the incoming heals on the target using:
UnitGetIncomingHeals("unit" [,"fromUnit"]) returns all incoming casted (and HOT tick) effects for a unit
So looking at something like https://github.com/haste/oUF/blob/ma...prediction.lua (that oUF framework has alot of interesting code)they do
Code:
local myIncomingHeal = UnitGetIncomingHeals(unit, 'player') or 0
local allIncomingHeal = UnitGetIncomingHeals(unit) or 0
local health, maxHealth = UnitHealth(unit), UnitHealthMax(unit)
if(health + allIncomingHeal > maxHealth * hp.maxOverflow) then
allIncomingHeal = maxHealth * hp.maxOverflow - health
end
if(allIncomingHeal < myIncomingHeal) then
myIncomingHeal = allIncomingHeal
allIncomingHeal = 0
else
allIncomingHeal = allIncomingHeal - myIncomingHeal
end
So the targets hp would be health + allIncomingHeal Now the only thing to remember when looking at this is that IncomingHeals include the full total of a HoT a target has so if they have a ton of hots on them they may look like they are top health with the incoming heals added in. I would suggest maybe cutting the number in half to be safe but in general this can help prevent overhealing and less bot like behavior.
Also I remember people saying there was issues with boomkins figuring out the eclipse buff, if so check out https://github.com/haste/oUF/blob/ma...eclipsebar.lua
Code:
local i = 1
local hasSolarEclipse, hasLunarEclipse
repeat
local _, _, _, _, _, _, _, _, _, _, spellID = UnitAura(unit, i, 'HELPFUL')
if(spellID == ECLIPSE_BAR_SOLAR_BUFF_ID) then
hasSolarEclipse = true
elseif(spellID == ECLIPSE_BAR_LUNAR_BUFF_ID) then
hasLunarEclipse = true
end
i = i + 1
until not spellID
---------------------------------------------
Just as an update to my events post: Ash has posted the proof of concept to using event handling in PQR and had done an excellent job with it. I am currently converting my pally profile to have all the buffs/procs set by events when they are triggered and once i have that set I am working on a framework to handle encounter specific events. Basically i'm trying to port DBM over with reactions so your profile would know if you had Fading light or what phase a DS boss is in (should you be AOE'ing or AOE healing?) so we can have a Raid-specific version of a profile (the only raid that matters right now). I'll re-post my pally profile when i update it