Code:
COE
LT
Fel Flame
Shadowburn
Soulburn
Soul Fire
Demon Soul
Immolate
Conflagrate
Bane of Doom
Bane of Agony
Bane of Havok
corruption
Chaos Bolt
Incinerate
Soulshatter
coe
local usable = IsUsableSpell("1490")
local dbCotEPlayer, _, _, _, _, _, CotEexpireTime = UnitDebuffID("target", 1490, "PLAYER")
local dbCotE = UnitDebuffID("target", 1490)
local dbJinx = UnitDebuffID("target", 85547)
local dbEaM = UnitDebuffID("target", 60433)
local dbEP = UnitDebuffID("target", 65142)
local dbFB = UnitDebuffID("target", 34889)
local dbLB = UnitDebuffID("target", 24844)
local dbMP = UnitDebuffID("target", 93068)
local levelCheck = UnitLevel("target")
if usable ~= nil then
if levelCheck == -1 then
return true
elseif dbCotEPlayer ~= nil then
--we have a COTE up that was cast by us, refresh it if necessary.
if CotEexpireTime - GetTime() < 1.5 then
return true
end
elseif dbCotE ~= nil or dbEaM ~= nil or dbEP ~= nil or dbFB ~= nil or dbLB ~= nil or dbMP ~= nil or dbJinx ~= nil then
--a debuff is up, cast by another player... let them manage it.
return false
else
--no debuff is up, cast it.
return true
end
end
Life Tap
local usable = IsUsableSpell("1454")
local myMana = UnitPower("player") / UnitPowerMax("player") * 100
local myHealth = UnitHealth("player") / UnitHealthMax("player") * 100
if usable ~= nil then
if myMana < 20 and myHealth > 50 then
return true
end
end
Fel Flame
local felSpark = UnitBuffID("player", 89937)
local usable = IsUsableSpell("77799")
if usable ~= nil then
if PQR_IsMoving(1) then
return true
elseif felSpark ~= nil then
return true
end
end
Shadowburn
local usable = IsUsableSpell("17877")
local unithealth = 100 * UnitHealth("target") / UnitHealthMax("target")
if usable ~= nil then
if unithealth <= 20 then
return true
end
end
soulburn
local usable = IsUsableSpell("74434")
local SoulFireCheck = UnitBuffID("player", 18120)
local unithealth = 100 * UnitHealth("target") / UnitHealthMax("target")
local heroism = UnitBuffID("player", 32182)
local lust = UnitBuffID("player", 2825)
local warp = UnitBuffID("player", 80353)
local hysteria = UnitBuffID("player", 90355)
if usable ~= nil then
if unithealth > 97 then
if SoulFireCheck == nil then
return true
end
elseif heroism ~= nil or lust ~= nil or warp ~= nil or hysteria ~= nil then
if SoulFireCheck == nil then
return true
end
end
end
Soul Fire
local usable = IsUsableSpell("6353")
local hasSoulburn = UnitBuffID("player", 74434)
local SoulFireCheck, _, _, _, _, _, SoulFireExpire = UnitBuffID("player", 18120)
local heroism = UnitBuffID("player", 32182)
local lust = UnitBuffID("player", 2825)
local warp = UnitBuffID("player", 80353)
local hysteria = UnitBuffID("player", 90355)
local levelCheck = UnitLevel("target")
local empoweredImp = UnitBuffID("player", 47221)
if usable ~= nil then
if hasSoulburn ~= nil then
return true
elseif empoweredImp ~= nil then
return true
elseif heroism ~= nil or lust ~= nil or warp ~= nil or hysteria ~= nil then
if SoulFireCheck == nil then
return true
end
elseif levelCheck == -1 then
if SoulFireCheck == nil then
return true
else
SoulFireExpire = SoulFireExpire - GetTime()
if SoulFireExpire < 3.5 then
return true
end
end
end
end
Demon Soul
local usable = IsUsableSpell("77801")
local levelCheck = UnitLevel("target")
local heroism = UnitBuffID("player", 32182)
local lust = UnitBuffID("player", 2825)
local warp = UnitBuffID("player", 80353)
local hysteria = UnitBuffID("player", 90355)
local unithealth = 100 * UnitHealth("target") / UnitHealthMax("target")
if usable ~= nil then
if heroism ~= nil or lust ~= nil or warp ~= nil or hysteria ~= nil then
return true
elseif levelCheck ==87 or levelCheck == -1 then
if unithealth >= 95 then
return true
end
end
end
Immolate
local usable = IsUsableSpell("348")
local debuffImmolate, _, _, _, _, _, ImmolateExpire = UnitDebuffID("target", 348, "PLAYER")
if usable ~= nil then
if PQR_IsMoving(1) then
return false
else
if debuffImmolate == nil then
return true
else
ImmolateExpire = ImmolateExpire - GetTime()
if ImmolateExpire < 3 then
return true
end
end
end
end
Conflagrate
local usable = IsUsableSpell("17962")
local debuffImmolate, _, _, _, _, _, ImmolateExpire = UnitDebuffID("target", 348, "PLAYER")
if usable ~= nil then
if debuffImmolate ~= nil then
ImmolateExpire = ImmolateExpire - GetTime()
if ImmolateExpire > 3.5 then
return true
end
end
end
Bane of Doom
--cast Bane of Doom if boss level and Bane not up already.
local usable = IsUsableSpell("603")
local baneDoomDebuff = UnitDebuffID("target", 603, "PLAYER")
local levelCheck = UnitLevel("target")
if usable ~= nil then
if levelCheck == -1 or levelCheck == 87 then
return true
elseif baneDoomDebuff == nil then
return false
end
end
Bane of Agony
local usable = IsUsableSpell("980")
local baneAgonyDebuff, _, _, _, _, _, AgonyExpireTime = UnitDebuffID("target", 980, "PLAYER")
local levelCheck = UnitLevel("target")
local baneDoomDebuff = UnitDebuffID("target", 603, "PLAYER")
if usable ~= nil then
if levelCheck == -1 or levelCheck == 87 then
return false
else
if baneAgonyDebuff ~= nil and baneDoomDebuff ~= nil then
AgonyExpireTime = AgonyExpireTime - GetTime()
if AgonyExpireTime < .5 then
return true
end
end
end
corruption
local usable = IsUsableSpell("172")
local dbCorruption, _, _, _, _, _, CorruptionExpire = UnitDebuffID("target", 172, "PLAYER")
if usable ~= nil then
if dbCorruption ~= nil then
CorruptionExpire = (CorruptionExpire - GetTime())
if CorruptionExpire < .5 then
return true
end
else
return true
end
end
Choas Bolt
local usable = IsUsableSpell("50796")
if usable ~= nil then
if PQR_IsMoving(1) then
return false
else
return true
end
end
Incinerate
local usable = IsUsableSpell("29722")
if usable ~= nil then
if PQR_IsMoving(1) then
return false
else
return true
end
end
Soulshatter
local usable = IsUsableSpell("29858")
local _,_,threatpct,_,_ = UnitDetailedThreatSituation("player", "target")
if usable ~=nil then
if threatpct >= 94 then
return true
end
end