Level 4
Code:
# Stone Form Racial
/run i=1 while(i<=40)do a={UnitDebuff("player", i)} if (a[5]=="Disease" or a[5]=="Poison" or a[5]=="Bleed") then break else i=i+1 end end; if i<=40 then CastSpellByName("Stoneform") end
# Blessing of Might
/run if not UnitBuff("player", "Blessing of Might") and IsUsableSpell("Blessing of Might") then RunMacroText("/cast [@player] Blessing of Might") end
# Seal
/run if not UnitBuff("player", "Seal of Righteousness") and IsUsableSpell("Seal of Righteousness") then CastSpellByName("Seal of Righteousness") end
# Judgement
/run if GetSpellCooldown("Judgement of Light")==0 and IsUsableSpell("Judgement of Light") and IsSpellInRange("Judgement of Light","target") then CastSpellByName("Judgement of Light") end
# Attack
/startattack
# Error Handling
/run StaticPopup_Hide("MACRO_ACTION_FORBIDDEN");
+ Automatic Seal when missing
+ Automatic Might when missing
+ Dwarf Stoneform racial use
Level 6
Code:
/run PHealth=UnitHealth("player")/UnitHealthMax("player")
/run THealth=UnitHealth("target")
# Stone Form Racial
/run i=1 while(i<=40)do a={UnitDebuff("player", i)} if (a[5]=="Disease" or a[5]=="Poison" or a[5]=="Bleed") then break else i=i+1 end end; if i<=40 then CastSpellByName("Stoneform") end
# Blessing of Might
/run if not UnitBuff("player", "Blessing of Might") and IsUsableSpell("Blessing of Might") then RunMacroText("/cast [@player] Blessing of Might") end
# Seal
/run if not UnitBuff("player", "Seal of Righteousness") and IsUsableSpell("Seal of Righteousness") then CastSpellByName("Seal of Righteousness") end
# Judgement
/run if GetSpellCooldown("Judgement of Light")==0 and IsUsableSpell("Judgement of Light") and IsSpellInRange("Judgement of Light","target") then CastSpellByName("Judgement of Light") end
# Divine Protection if HP < 50%
/run if GetSpellCooldown("Divine Protection")==0 and IsUsableSpell("Divine Protection") and CheckInteractDistance("target",2) and PHealth < 0.50 then CastSpellByName("Divine Protection") end
# Attack
/startattack [nodead]
# Error Handling
/run StaticPopup_Hide("MACRO_ACTION_FORBIDDEN");
+ Divine Protection when under 50% health
Level 10
Code:
/run PHealth=UnitHealth("player")/UnitHealthMax("player")
/run THealth=UnitHealth("target")
# Stone Form Racial
/run i=1 while(i<=40)do a={UnitDebuff("player", i)} if (a[5]=="Disease" or a[5]=="Poison" or a[5]=="Bleed") then break else i=i+1 end end; if i<=40 then CastSpellByName("Stoneform") end
# Purify
/run i=1 while(i<=40)do a={UnitDebuff("player", i)} if (a[5]=="Disease" or a[5]=="Poison") then break else i=i+1 end end; if i<=40 then RunMacroText("/cast [@player] Purify") end
# Blessing of Might
/run if not UnitBuff("player", "Blessing of Might") and IsUsableSpell("Blessing of Might") then RunMacroText("/cast [@player] Blessing of Might") end
# Seal
/run if not UnitBuff("player", "Seal of Righteousness") and IsUsableSpell("Seal of Righteousness") then CastSpellByName("Seal of Righteousness") end
# Hammer of Justice if HP > 50% on target
/run if GetSpellCooldown("Hammer of Justice")==0 and IsUsableSpell("Hammer of Justice") and IsSpellInRange("Hammer of Justice","target") and THealth > 0.50 then CastSpellByName("Hammer of Justice") end
# Judgement
/run if GetSpellCooldown("Judgement of Light")==0 and IsUsableSpell("Judgement of Light") and IsSpellInRange("Judgement of Light","target") then CastSpellByName("Judgement of Light") end
# Divine Protection if HP < 50%
/run if GetSpellCooldown("Divine Protection")==0 and IsUsableSpell("Divine Protection") and CheckInteractDistance("target",2) and PHealth < 0.50 then CastSpellByName("Divine Protection") end
# Lay on Hands at < 10%
/run if GetSpellCooldown("Lay on Hands")==0 and IsUsableSpell("Lay on Hands") and PHealth < 0.10 then RunMacroText("/cast [@player] Lay on Hands") end
# Attack
/startattack [nodead]
# Error Handling
/run StaticPopup_Hide("MACRO_ACTION_FORBIDDEN");
+ Stoneform Racial
+ Purify on Poison/Bleed
+ Blessing of Might if missing
+ Seal of righteousness if missing
+ Hammer of Justice when available
+ Judgement of Light
+ Divine Protection < 50% HP
+ Lay on Hands < 10% HP
Level 16
Code:
/run PHealth=UnitHealth("player")/UnitHealthMax("player")
/run THealth=UnitHealth("target")
# Stone Form Racial
/run i=1 while(i<=40)do a={UnitDebuff("player", i)} if (a[5]=="Disease" or a[5]=="Poison" or a[5]=="Bleed") then break else i=i+1 end end; if i<=40 then CastSpellByName("Stoneform") end
# Purify
/run i=1 while(i<=40)do a={UnitDebuff("player", i)} if (a[5]=="Disease" or a[5]=="Poison") then break else i=i+1 end end; if i<=40 then RunMacroText("/cast [@player] Purify") end
# Blessing of Might
/run if not UnitBuff("player", "Blessing of Might") and IsUsableSpell("Blessing of Might") then RunMacroText("/cast [@player] Blessing of Might") end
# Seal
/run if not UnitBuff("player", "Seal of Righteousness") and IsUsableSpell("Seal of Righteousness") then CastSpellByName("Seal of Righteousness") end
# Hammer of Justice if HP > 50% on target
/run if GetSpellCooldown("Hammer of Justice")==0 and IsUsableSpell("Hammer of Justice") and IsSpellInRange("Hammer of Justice","target") and THealth > 0.50 then CastSpellByName("Hammer of Justice") end
# Judgement
/run if GetSpellCooldown("Judgement of Light")==0 and IsUsableSpell("Judgement of Light") and IsSpellInRange("Judgement of Light","target") then CastSpellByName("Judgement of Light") end
# Divine Protection if HP < 50%
/run if GetSpellCooldown("Divine Protection")==0 and IsUsableSpell("Divine Protection") and CheckInteractDistance("target",2) and PHealth < 0.50 and not UnitDebuff("player", "Forbearance") then CastSpellByName("Divine Protection") end
# Lay on Hands at < 10%
/run if GetSpellCooldown("Lay on Hands")==0 and IsUsableSpell("Lay on Hands") and PHealth < 0.10 and not UnitDebuff("player", "Forbearance") then RunMacroText("/cast [@player] Lay on Hands") end
# Attack
/startattack [nodead]
/cast [nocombat] Hand of Reckoning
# Error Handling
/run StaticPopup_Hide("MACRO_ACTION_FORBIDDEN");
+ Hand of Reckoning for faster pull/tag
Level 20
Code:
/run PHealth=UnitHealth("player")/UnitHealthMax("player")
/run PPower=UnitPower("player")/UnitPowerMax("player")
/run THealth=UnitHealth("target")
# Stone Form Racial
/run i=1 while(i<=40)do a={UnitDebuff("player", i)} if (a[5]=="Disease" or a[5]=="Poison" or a[5]=="Bleed") then break else i=i+1 end end; if i<=40 then CastSpellByName("Stoneform") end
# Purify
/run i=1 while(i<=40)do a={UnitDebuff("player", i)} if (a[5]=="Disease" or a[5]=="Poison") then break else i=i+1 end end; if i<=40 then RunMacroText("/cast [@player] Purify") end
# Blessing of Might
/run if not UnitBuff("player", "Blessing of Kings") and IsUsableSpell("Blessing of Kings") then RunMacroText("/cast [@player] Blessing of Kings") end
# Seal
/run if not UnitBuff("player", "Seal of Command") and IsUsableSpell("Seal of Command") then CastSpellByName("Seal of Command") end
# Hammer of Justice if HP > 50% on target
/run if GetSpellCooldown("Hammer of Justice")==0 and IsUsableSpell("Hammer of Justice") and IsSpellInRange("Hammer of Justice","target") and THealth > 0.50 then CastSpellByName("Hammer of Justice") end
# Judgement
/run if (PPower < 0.35) and GetSpellCooldown("Judgement of Wisdom")==0 and IsUsableSpell("Judgement of Wisdom") and IsSpellInRange("Judgement of Wisdom","target") then CastSpellByName("Judgement of Wisdom") elseif GetSpellCooldown("Judgement of Light")==0 and IsUsableSpell("Judgement of Light") and IsSpellInRange("Judgement of Light","target") then CastSpellByName("Judgement of Light") end
# Exorcism
/run if (PPower > 0.50) and IsUsableSpell("Exorcism") and IsSpellInRange("Exorcism") then CastSpellByName("Exorcism") end
# Divine Protection if HP < 50%
/run if GetSpellCooldown("Divine Protection")==0 and IsUsableSpell("Divine Protection") and CheckInteractDistance("target",2) and PHealth < 0.50 and not UnitDebuff("player", "Forbearance") then CastSpellByName("Divine Protection") end
# Lay on Hands at < 15%
/run if GetSpellCooldown("Lay on Hands")==0 and IsUsableSpell("Lay on Hands") and PHealth < 0.15 and not UnitDebuff("player", "Forbearance") then RunMacroText("/cast [@player] Lay on Hands") end
# Attack
/startattack [nodead]
/cast [nocombat] Hand of Reckoning
# Error Handling
/run StaticPopup_Hide("MACRO_ACTION_FORBIDDEN");
+ Seal of Command
+ Blessing of Kings
+ Judgement of Wisdom when less than 35% Mana
+ Lay on hands at 15% Health
+ Exorcism with more than 50% mana.
Level 41 (2/2 Art of War)
Code:
/run PHealth=UnitHealth("player")/UnitHealthMax("player")
/run PPower=UnitPower("player")/UnitPowerMax("player")
/run THealth=UnitHealth("target")
# Stone Form Racial
/run i=1 while(i<=40)do a={UnitDebuff("player", i)} if (a[5]=="Disease" or a[5]=="Poison" or a[5]=="Bleed" or a[1]=="Rend") then break else i=i+1 end end; if i<=40 then CastSpellByName("Stoneform") end
# Cleanse
/run i=1 while(i<=40)do a={UnitDebuff("player", i)} if (a[5]=="Disease" or a[5]=="Poison" or a[5]=="Magic") then break else i=i+1 end end; if i<=40 then RunMacroText("/cast [@player] Cleanse") end
# Blessing
/run if not UnitBuff("player", "Blessing of Might") and IsUsableSpell("Blessing of Might") then RunMacroText("/cast [@player] Blessing of Might") end
# Seal
/run if not UnitBuff("player", "Seal of Command") and IsUsableSpell("Seal of Command") then CastSpellByName("Seal of Command") end
# Hammer of Justice if HP > 50% on target
/run if GetSpellCooldown("Hammer of Justice")==0 and IsUsableSpell("Hammer of Justice") and IsSpellInRange("Hammer of Justice","target") and THealth > 0.50 then CastSpellByName("Hammer of Justice") end
# Judgement
/run if (PPower < 0.35) and GetSpellCooldown("Judgement of Wisdom")==0 and IsUsableSpell("Judgement of Wisdom") and IsSpellInRange("Judgement of Wisdom","target") then CastSpellByName("Judgement of Wisdom") elseif GetSpellCooldown("Judgement of Light")==0 and IsUsableSpell("Judgement of Light") and IsSpellInRange("Judgement of Light","target") then CastSpellByName("Judgement of Light") end
# Exorcism
/run if (PPower > 0.20) and IsUsableSpell("Exorcism") and IsSpellInRange("Exorcism") and UnitBuff("player", "The Art of War") and GetSpellCooldown("Exorcism")==0 then CastSpellByName("Exorcism") end
# Flash of Light
/run if GetSpellCooldown("Exorcism")>0 and IsUsableSpell("Flash of Light") and UnitBuff("player","The Art of War") and PHealth < 0.80 then CastSpellByName("Flash of Light") end
# Hand of Protection if HP < 50%
/run if GetSpellCooldown("Hand of Protection")==0 and IsUsableSpell("Hand of Protection") and CheckInteractDistance("target",2) and PHealth < 0.50 and not UnitDebuff("player", "Forbearance") then RunMacroText("/cast [@player] Hand of Protection") end
# Lay on Hands at < 15%
/run if GetSpellCooldown("Lay on Hands")==0 and IsUsableSpell("Lay on Hands") and PHealth < 0.15 and not UnitDebuff("player", "Forbearance") then RunMacroText("/cast [@player] Lay on Hands") end
# Attack
/startattack [nodead]
/cast [nocombat] Hand of Reckoning
# Error Handling
/run StaticPopup_Hide("MACRO_ACTION_FORBIDDEN");
+ Judgement of Light if more than 35% mana, Wisdom otherwise
+ Exorcism on Art of War proc and above 20% mana only.
+ Flash of Light on Art of War proc and less than 80% health.
+ Cleanse instead of purify
+ Blessing of might instead of kings
Level 44
Code:
/stopmacro [channeling]
/run PHealth=UnitHealth("player")/UnitHealthMax("player")
/run PPower=UnitPower("player")/UnitPowerMax("player")
/run THealth=UnitHealth("target")/UnitHealthMax("target")
# Stone Form Racial
/run i=1 while(i<=40)do a={UnitDebuff("player", i)} if (a[5]=="Disease" or a[5]=="Poison" or a[5]=="Bleed" or a[1]=="Rend") then break else i=i+1 end end; if i<=40 then CastSpellByName("Stoneform") end
# Cleanse
/run i=1 while(i<=40)do a={UnitDebuff("player", i)} if (a[5]=="Disease" or a[5]=="Poison" or a[5]=="Magic") then break else i=i+1 end end; if i<=40 then RunMacroText("/cast [@player] Cleanse") end
# Blessing
/run if not UnitBuff("player", "Blessing of Might") and IsUsableSpell("Blessing of Might") then RunMacroText("/cast [@player] Blessing of Might") end
# Seal
/run if not UnitBuff("player", "Seal of Command") and IsUsableSpell("Seal of Command") then CastSpellByName("Seal of Command") end
# Hammer of Wrath
/run if (THealth <= 0.20) and IsUsableSpell("Hammer of Wrath") and IsSpellInRange("Hammer of Wrath") and GetSpellCooldown("Hammer of Wrath")==0 then CastSpellByName("Hammer of Wrath") end
# Exorcism
/run if (PPower > 0.20) and IsUsableSpell("Exorcism") and IsSpellInRange("Exorcism") and UnitBuff("player", "The Art of War") and GetSpellCooldown("Exorcism")==0 then CastSpellByName("Exorcism") end
# Flash of Light
/run if GetSpellCooldown("Exorcism")>0 and IsUsableSpell("Flash of Light") and UnitBuff("player","The Art of War") and PHealth < 0.80 then CastSpellByName("Flash of Light") end
# Hammer of Justice if HP > 50% on target
/run if GetSpellCooldown("Hammer of Justice")==0 and IsUsableSpell("Hammer of Justice") and IsSpellInRange("Hammer of Justice","target") and THealth > 0.50 then CastSpellByName("Hammer of Justice") end
# Judgement
/run if (PPower < 0.35) and GetSpellCooldown("Judgement of Wisdom")==0 and IsUsableSpell("Judgement of Wisdom") and IsSpellInRange("Judgement of Wisdom","target") then CastSpellByName("Judgement of Wisdom") elseif GetSpellCooldown("Judgement of Light")==0 and IsUsableSpell("Judgement of Light") and IsSpellInRange("Judgement of Light","target") then CastSpellByName("Judgement of Light") end
# Hand of Protection if HP < 50%
/run if GetSpellCooldown("Hand of Protection")==0 and IsUsableSpell("Hand of Protection") and CheckInteractDistance("target",2) and PHealth < 0.50 and not UnitDebuff("player", "Forbearance") then RunMacroText("/cast [@player] Hand of Protection") end
# Lay on Hands at < 15%
/run if GetSpellCooldown("Lay on Hands")==0 and IsUsableSpell("Lay on Hands") and PHealth < 0.15 and not UnitDebuff("player", "Forbearance") then RunMacroText("/cast [@player] Lay on Hands") end
# Attack
/startattack [nodead]
/cast [nocombat] Hand of Reckoning
# Error Handling
/run StaticPopup_Hide("MACRO_ACTION_FORBIDDEN");
+ Hammer of Wrath