BuBa so u probably saw issues with healing on 5th and 6th bosses in HoF. If u could code it better /cleaner. For now i think these lines should work (it works in Sheuron shaman rotation when i added some lines). So i copied his "HaveDebuff" code and add lines to ur LUA_data_file. So what i added:
Code:
function HaveDebuff(UnitID,SpellID,TimeLeft,Filter)
if not TimeLeft then TimeLeft = 0 end
if type(SpellID) == "number" then SpellID = { SpellID } end
for i=1,#SpellID do
local spell, rank = GetSpellInfo(SpellID[i])
if spell then
local debuff = select(7,UnitDebuff(UnitID,spell,rank,Filter))
if debuff and ( debuff == 0 or debuff - GetTime() > TimeLeft ) then return true end
end
end
end
then in "CanHeal" section added spells:
Code:
function CanHeal(t)
if UnitInRange(t)
and UnitCanCooperate("player",t)
and not UnitIsCharmed(t)
and not UnitIsDeadOrGhost(t)
and not PQR_IsOutOfSight(t)
and UnitIsConnected(t)
and UnitDebuffID(t,104451) == nil -- Ice Tomb
and UnitDebuffID(t,76577) == nil -- Smoke Bomb
and HaveDebuff(t,121949) == nil -- Parasitic Growth (Amber-Shaper Un'sok, 5th boss in HOF)
and HaveDebuff(t,122784) == nil -- Reshape Life I, spell which changes us into construct (5th boss in HOF)
and HaveDebuff(t,122370) == nil -- Reshape Life II, same as above one
and HaveDebuff(t,123255) == nil -- Dissonance Field 6th boss
and HaveDebuff(t,123184) == nil -- Dissonance Field 6th boss
and HaveDebuff(t,123596) == nil -- Dissonance Field 6th boss
and HaveDebuff(t,128353) == nil -- Dissonance Field 6th boss
then return true else return false end
end
Tried to do table with that debuffs spells id's but i did that before solving problems with UnitDebuffID. Will try to do it but tomorrow when sleep a little.
But have one more question.
How "members" table works?
Is it adding ppl in real time? Mean combat starts, adding ppl over and over for whole fight or just at start?
Iam asking cuz if it add them only on start, there should be coded remove players with debuff?
Hmm it is late, my eng is bad so i hope u understand me ; p.