Hi everyone
I got this question and hope some can help me out.
I want my CR to count how many renewing mist there is on the raid and cast uplift accordingly.
For now i have this from Pqr and hope someone can convert it to PE or have some other code.
Ty in advance and sorry for my bad english.
if not UpliftHeal then
function UpliftHeal()
local uplift = 0
for i = 1, #roster do
if roster[i].hp <= UPLIFT
and UnitBuff(roster[i].unit, convert(115151), nil, "PLAYER") then
uplift = uplift + 1
end
end
return uplift
end
else
if GetSpellCooldown(convert(115151)) ~= 0 then
if UpliftHeal() >= 4
or UpliftHeal() >= 4
and UnitPower("player", 12) >= 2
or UnitBuff("player", convert(116680)) then
CastHeal(116670)
end
end
end