From 854b930f2b0180c34647801bddb089be74771f57 Mon Sep 17 00:00:00 2001 From: Sidoine De Wispelaere Date: Sun, 25 Jan 2009 13:33:47 +0000 Subject: [PATCH] excorism can be caster on demons too! git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@13 d5049fe3-3747-40f7-a4b5-f36d6801af5f --- Condition.lua | 11 ++++++----- defaut/Paladin.lua | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) 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 -- 1.7.9.5