Quantcast

Fix ticket 175 - Paladin Priority broken with Glyph of Exorcism

Johnny C. Lam [01-25-13 - 16:00]
Fix ticket 175 - Paladin Priority broken with Glyph of Exorcism

When using the Glyph of Mass Exorcism, the spell ID of Exorcism changes
from 879 to 122032.

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@671 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Filename
defaut/Paladin.lua
diff --git a/defaut/Paladin.lua b/defaut/Paladin.lua
index df706b7..4f5e562 100644
--- a/defaut/Paladin.lua
+++ b/defaut/Paladin.lua
@@ -14,6 +14,8 @@ Define(execution_sentence 114916)
   SpellAddTargetDebuff(execution_sentence execution_sentence=1)
 Define(exorcism 879)
   SpellInfo(exorcism holy=-1 cd=15 )
+Define(exorcism_glyphed 122032)
+  SpellInfo(exorcism_glyphed holy=-1 cd=15)
 Define(guardian_of_ancient_kings 86659)
   SpellInfo(guardian_of_ancient_kings duration=12 cd=180 )
   SpellAddBuff(guardian_of_ancient_kings guardian_of_ancient_kings=1)
@@ -32,6 +34,7 @@ Define(seal_of_truth 31801)
   SpellAddBuff(seal_of_truth seal_of_truth=1)
 Define(templars_verdict 85256)
   SpellInfo(templars_verdict holy=3 )
+Define(glyph_of_mass_exorcism 122028)
 AddCheckBox(showwait L(showwait) default)
 AddIcon mastery=3 help=main
 {
@@ -47,7 +50,8 @@ AddIcon mastery=3 help=main
 	if HolyPower() ==5 Spell(templars_verdict)
 	Spell(hammer_of_wrath usable=1)
 	if SpellCooldown(hammer_of_wrath) >0 and SpellCooldown(hammer_of_wrath) <=0.2 if CheckBoxOn(showwait) Texture(Spell_nature_timestop)
-	Spell(exorcism)
+	if Glyph(glyph_of_mass_exorcism no) Spell(exorcism)
+	if Glyph(glyph_of_mass_exorcism) Spell(exorcism_glyphed)
 	if target.HealthPercent() <=20 or BuffPresent(avenging_wrath) Spell(judgment)
 	Spell(crusader_strike)
 	Spell(judgment)