Code:
<?xml version="1.0" encoding="utf-8" ?><DEATHKNIGHT><Ability><Name>Rune Strike</Name><Default>false</Default><SpellID>56815</SpellID><Actions>/startattack</Actions><Lua>return true</Lua><RecastDelay>0</RecastDelay><Target>Target</Target></Ability><Ability><Name>Obliterate</Name><Default>false</Default><SpellID>49020</SpellID><Actions>/startattack|/use 10</Actions><Lua>return true</Lua><RecastDelay>0</RecastDelay><Target>Target</Target></Ability><Ability><Name>Howling Blast</Name><Default>false</Default><SpellID>49184</SpellID><Actions>/startattack</Actions><Lua>return true</Lua><RecastDelay>0</RecastDelay><Target>Target</Target></Ability><Ability><Name>Plague Strike</Name><Default>false</Default><SpellID>45462</SpellID><Actions></Actions><Lua>local BloodPlague, _, _, _, _, _, BloodPlagueExpire = UnitDebuffID(&quot;target&quot;,59879, &quot;player&quot;)
if BloodPlague ~= nil then
BloodPlagueExpire =(BloodPlagueExpire - GetTime())
if BloodPlagueExpire &lt; 5 then
return true
end
else
return true
end</Lua><RecastDelay>0</RecastDelay><Target>Target</Target></Ability><Ability><Name>Blood Strike</Name><Default>false</Default><SpellID>45902</SpellID><Actions></Actions><Lua>
return true
</Lua><RecastDelay>0</RecastDelay><Target>Target</Target></Ability><Ability><Name>Frost Strike</Name><Default>false</Default><SpellID>49143</SpellID><Actions></Actions><Lua>if UnitPower(&quot;player&quot;) &gt; 40 then
return true
end</Lua><RecastDelay>0</RecastDelay><Target>Target</Target></Ability><Ability><Name>Death Coil</Name><Default>false</Default><SpellID>47541</SpellID><Actions></Actions><Lua>
return true
</Lua><RecastDelay>0</RecastDelay><Target>Target</Target></Ability><Ability><Name>Blood Boil</Name><Default>false</Default><SpellID>48721</SpellID><Actions></Actions><Lua>
return true
</Lua><RecastDelay>0</RecastDelay><Target>Target</Target></Ability><Ability><Name>Outbreak</Name><Default>false</Default><SpellID>77575</SpellID><Actions></Actions><Lua>local dbBloodPlague, _, _, _, _, _,BloodPlagueExpire = UnitDebuffID(&quot;target&quot;,59879, &quot;player&quot;)
if UnitHealth(&quot;target&quot;) &gt;= 300000 then
if dbBloodPlague ~= nil then
BloodPlagueExpire =(BloodPlagueExpire - GetTime())
if BloodPlagueExpire &lt; 6 then
return true
end
else
return true
end
end</Lua><RecastDelay>0</RecastDelay><Target>Target</Target></Ability><Ability><Name>Obliterate(Proc)</Name><Default>false</Default><SpellID>49020</SpellID><Actions>/startattack|/use 10</Actions><Lua>local KMProc = UnitBuffID(&quot;player&quot;,51128)
if KMProc ~= nil then
return true
end</Lua><RecastDelay>0</RecastDelay><Target>Target</Target></Ability><Ability><Name>Death Strike</Name><Default>false</Default><SpellID>49998</SpellID><Actions></Actions><Lua>local HP = UnitHealth(&quot;player&quot;) / UnitHealthMax(&quot;player&quot;) * 100
if HP &lt; 25 then
return true
end</Lua><RecastDelay>0</RecastDelay><Target>Target</Target></Ability><Ability><Name>Horn of Winter</Name><Default>false</Default><SpellID>57330</SpellID><Actions></Actions><Lua>local HornOfwinter, _, _, _, _, _,HornExpire = UnitBuffID(&quot;player&quot;, 57330)
if HornOfWinter ~= nil then
HornExpire =(HornExpire - GetTime())
if HornExpire &lt; 6 then
return true
end
else
return true
end</Lua><RecastDelay>0</RecastDelay><Target>Target</Target></Ability><Ability><Name>Mind Freeze</Name><Default>false</Default><SpellID>53550</SpellID><Actions></Actions><Lua>return true</Lua><RecastDelay>0</RecastDelay><Target>Target</Target></Ability><Ability><Name>Festering Strike</Name><Default>false</Default><SpellID>85948</SpellID><Actions></Actions><Lua>return true</Lua><RecastDelay>0</RecastDelay><Target>Target</Target></Ability><Ability><Name>Pestilence</Name><Default>false</Default><SpellID>50842</SpellID><Actions></Actions><Lua>return true</Lua><RecastDelay>0</RecastDelay><Target>Target</Target></Ability><Ability><Name>Howling Blast (proc)</Name><Default>false</Default><SpellID>49184</SpellID><Actions>/startattack</Actions><Lua>local FreezingFog = UnitBuffID(&quot;player&quot;, 59052)
if FreezingFog ~= nil then
return true
end</Lua><RecastDelay>0</RecastDelay><Target>Target</Target></Ability><Ability><Name>Horn of Winter(on)</Name><Default>false</Default><SpellID>57330</SpellID><Actions></Actions><Lua>local HornOfWinter = UnitBuffID(&quot;player&quot;, 57330)
if HornOfWinter == nil then
return true
end</Lua><RecastDelay>0</RecastDelay><Target>Target</Target></Ability><Ability><Name>Death Coil(rp-cap)</Name><Default>false</Default><SpellID>47541</SpellID><Actions></Actions><Lua>if UnitPower(&quot;player&quot;) &gt;= 82 then
return true
end</Lua><RecastDelay>0</RecastDelay><Target>Target</Target></Ability><Ability><Name>Frost Strike(RP for Brez)</Name><Default>false</Default><SpellID>49143</SpellID><Actions></Actions><Lua>local rp = 40
if (UnitPowerMax(&quot;player&quot;) - UnitPower(&quot;player&quot;)) &lt; rp then
return true
end</Lua><RecastDelay>0</RecastDelay><Target>Target</Target></Ability><Ability><Name>Pillar of Frost</Name><Default>false</Default><SpellID>51271</SpellID><Actions>/startattack</Actions><Lua>if UnitHealth(&quot;target&quot;) &gt;= 300000 then
return true
end</Lua><RecastDelay>0</RecastDelay><Target>Target</Target></Ability><Ability><Name>Blood Tap</Name><Default>false</Default><SpellID>45529</SpellID><Actions></Actions><Lua>return true</Lua><RecastDelay>0</RecastDelay><Target>Target</Target></Ability><Ability><Name>Raise Dead</Name><Default>false</Default><SpellID>46584</SpellID><Actions></Actions><Lua>local UnholySTR = UnitBuffID(&quot;player&quot;, 53365)
local PillarOfFrost = UnitBuffID(&quot;player&quot;,51271)
if UnitLevel(&quot;target&quot;) &gt;= 87 or UnitLevel(&quot;target&quot;) == -1 then
if UnitHealth(&quot;target&quot;) &gt; 300000 then
return true
end
end</Lua><RecastDelay>0</RecastDelay><Target>Target</Target></Ability><Ability><Name>Apparatus of Khaz&apos;goroth</Name><Default>false</Default><SpellID>0</SpellID><Actions>/use 14</Actions><Lua>local buff,_,_,TPCount = UnitAura(&quot;player&quot;,&quot;Titanic Power&quot;)
if buff ~= nil then
if TPCount == 5 and UnitHealth(&quot;target&quot;) &gt;= 300000 then
return true
end
end</Lua><RecastDelay>0</RecastDelay><Target>Player</Target></Ability><Ability><Name>Health Stone</Name><Default>false</Default><SpellID>5512</SpellID><Actions></Actions><Lua>local myhealth = 100 * UnitHealth(&quot;player&quot;) / UnitHealthMax(&quot;player&quot;)
if myhealth &lt;= 20 then
return true
end</Lua><RecastDelay>0</RecastDelay><Target>Player</Target></Ability><Ability><Name>Raise Dead(Pillar)</Name><Default>false</Default><SpellID>46584</SpellID><Actions></Actions><Lua>local UnholySTR = UnitBuffID(&quot;player&quot;, 53365)
local PillarOfFrost = UnitBuffID(&quot;player&quot;,51271)
if UnitLevel(&quot;target&quot;) &gt;= 87 or UnitLevel(&quot;target&quot;) == -1 then
if UnitHealth(&quot;target&quot;) &gt; 300000 then
if UnholySTR ~= nil and PillarOfFrost ~= nil then
return true
end
end
end</Lua><RecastDelay>0</RecastDelay><Target>Target</Target></Ability><Ability><Name>Frost Strike(Proc)</Name><Default>false</Default><SpellID>49143</SpellID><Actions></Actions><Lua>local KMProc = UnitBuffID(&quot;player&quot;,51128)
if KMProc ~= nil then
if UnitPower(&quot;player&quot;) &gt; 60 then
return true
end</Lua><RecastDelay>0</RecastDelay><Target>Target</Target></Ability><Ability><Name>Blood Tap(2 Rune)</Name><Default>false</Default><SpellID>45529</SpellID><Actions></Actions><Lua>local _,_,R1=GetRuneCooldown(1)
local _,_,R2=GetRuneCooldown(2)
if R1 == false or R2 == false then
return true
end</Lua><RecastDelay>0</RecastDelay><Target>Target</Target></Ability><Ability><Name>Howling Blast (Lust)</Name><Default>false</Default><SpellID>49184</SpellID><Actions>/startattack</Actions><Lua>local _,_,R1=GetRuneCooldown(1)
local _,_,R2=GetRuneCooldown(2)
local _,_,R3 =GetRuneCooldown(3)
local _,_,R4 =GetRuneCooldown(4)
local heroism = UnitBuffID(&quot;player&quot;, 32182)
local lust = UnitBuffID(&quot;player&quot;, 2825)
local warp = UnitBuffID(&quot;player&quot;, 80353)
local hysteria = UnitBuffID(&quot;player&quot;, 90355)
if heroism ~= nil or lust ~= nil or warp ~= nil or hysteria ~= nil then
if R1 == false and R2 == false and R3 == false and R4 == false then
return true
end</Lua><RecastDelay>0</RecastDelay><Target>Target</Target></Ability><Ability><Name>Obliterate(Death Rune)</Name><Default>false</Default><SpellID>49020</SpellID><Actions>/startattack|/use 10</Actions><Lua>local _,_,d1=GetRuneCooldown(1)
local _,_,d2=GetRuneCooldown(2)
if d1 == true and d2 == true then
return true
end</Lua><RecastDelay>0</RecastDelay><Target>Target</Target></Ability><Ability><Name>Obliterate(Fr&Uh rune)</Name><Default>false</Default><SpellID>49020</SpellID><Actions>/startattack|/use 10</Actions><Lua>local _,_,R3 =GetRuneCooldown(3)
local _,_,R4 =GetRuneCooldown(4)
local _,_,R5 = GetRuneCooldown(5)
local _,_,R6 = GetRuneCooldown(6)
if R3 == true and R4 == true and R5 == true and R6 == true then
return true
end</Lua><RecastDelay>0</RecastDelay><Target>Target</Target></Ability><Ability><Name>Frost Strike(RP cap)</Name><Default>false</Default><SpellID>49143</SpellID><Actions></Actions><Lua>local rp = 31
if (UnitPowerMax(&quot;player&quot;) - UnitPower(&quot;player&quot;)) &lt; rp then
return true
end</Lua><RecastDelay>0</RecastDelay><Target>Target</Target></Ability><Ability><Name>Howling Blast(Fever)</Name><Default>false</Default><SpellID>49184</SpellID><Actions>/startattack</Actions><Lua>local dbFrostFever, _, _, _, _, _, dbexpire = UnitDebuffID(&quot;target&quot;,55095, &quot;player&quot;)
if dbFrostFever ~= nil then
dbexpire =(dbexpire - GetTime())
if dbexpire &lt; 4 then
return true
end
else
return true
end</Lua><RecastDelay>0</RecastDelay><Target>Target</Target></Ability></DEATHKNIGHT>