Update for Hpal, added divine plea, will not waste dp procs anymore, will use ef/wog on focus, the tank, if raid is above a certain level and dp proc is almost over.
Few health tweaks to stuff, added boss stuff, added in cleanse(wip). I need ids for stuff that shouldn't be cleansed and stuff that should be cleansed instantly, regardless of raid health.
Uploading in a bit, going to try and get it up on my new svn. Will also release new ret and prot.
PHP Code:
local HoT,_,_,_,_,timer = UnitCastingInfo("boss1")
if HoT == GetSpellInfo(103327) and IsLeftShiftKeyDown() == nil then
if timer/1000 - GetTime() < 1.3 then
RunMacroText("/click ExtraActionButton1")
end
end
if HaveDebuff("player",{116808,116809,106791,105925,116161}, 1.5) then
RunMacroText("/click ExtraActionButton1")
end
if HaveBuff("player",102116,1.07) then
CancelUnitBuff("player","Magic Wings")
end
local objects = { "Alliance Flag", "Horde Flag", "Netherstorm Flag", "Amber Prison", "Fizzy Bubble" }
for i=1,#objects do InteractUnit(objects[i]) end
if UnitAffectingCombat("player") then
if UnitAura("player", "Parachute") then
RunMacroText("/cancelaura Parachute")
end
end
Wanted to share.
Below is not mine
PHP Code:
function HaveBuff(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 buff = select(7,UnitBuff(UnitID,spell,rank,Filter))
if buff and ( buff == 0 or buff - GetTime() > TimeLeft ) then return true end
end
end
end
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
edit: Just a question for people who want to use the hprofile, should I add hand of purity placed on focus(tank) every time it's up?