excorism can be caster on demons too!
Sidoine De Wispelaere [01-25-09 - 13:33]
excorism can be caster on demons too!
git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@13 d5049fe3-3747-40f7-a4b5-f36d6801af5f
diff --git a/Condition.lua b/Condition.lua
index 62554b1..96e93e9 100644
--- a/Condition.lua
+++ b/Condition.lua
@@ -219,11 +219,12 @@ Ovale.conditions=
end
end,
TargetCreatureType = function(condition)
- if (UnitCreatureType("target") == LBCT[condition[1]]) then
- return 0
- else
- return nil
- end
+ for _,v in pairs(condition) do
+ if (UnitCreatureType("target") == LBCT[v]) then
+ return 0
+ end
+ end
+ return nil
end,
-- Test if a debuff will expire on the target after a given time, or if there is less than the
-- given number of stacks (if stackable)
diff --git a/defaut/Paladin.lua b/defaut/Paladin.lua
index af6416c..2cd0bf4 100644
--- a/defaut/Paladin.lua
+++ b/defaut/Paladin.lua
@@ -54,7 +54,7 @@ AddIcon
if CheckBoxOn(consecration) Spell(CONSECRATE)
Spell(HOLYSHOCK)
if HasShield() Spell(SHIELDOFRIGHTEOUSNESS)
- if TargetCreatureType(Undead) Spell(EXORCISM usable=1)
+ if TargetCreatureType(Undead Demon) Spell(EXORCISM usable=1)
if BuffPresent(THEARTOFWAR) Spell(FLASHOFLIGHT priority=2)
}
AddIcon