From 6e746871256f3e62ab1e3d64c6a5bc7906722591 Mon Sep 17 00:00:00 2001 From: Sidoine De Wispelaere Date: Fri, 6 Aug 2010 17:50:41 +0000 Subject: [PATCH] adding TargetIsInterruptible function git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@261 d5049fe3-3747-40f7-a4b5-f36d6801af5f --- Condition.lua | 4 ++++ Ovale.toc | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Condition.lua b/Condition.lua index 050c089..7c8cba1 100644 --- a/Condition.lua +++ b/Condition.lua @@ -753,6 +753,10 @@ Ovale.conditions= TargetIsCasting = function(condition) return testbool(UnitCastingInfo(getTarget(condition.target)), condition[1]) end, + TargetIsInterruptible = function(condition) + local spell, rank, name, icon, start, ending, isTradeSkill, castID, protected = UnitCastingInfo(getTarget(condition.target)) + return testbool(protected ~= nil and not protected, condition[1]) + end, TargetLife = function(condition) local target = getTarget(condition.target) return compare(UnitHealth(target), condition[1], condition[2]) diff --git a/Ovale.toc b/Ovale.toc index db88d7e..20749ef 100644 --- a/Ovale.toc +++ b/Ovale.toc @@ -3,7 +3,7 @@ ## Notes: Show the icon of the next spell to cast ## Notes-frFR: Affiche l'icône du prochain sort à lancer ## Author: Sidoine -## Version: 3.3.35 +## Version: 3.3.36 ## OptionalDeps: Ace3, ButtonFacade, Recount, LibBabble-CreatureType-3.0 ## SavedVariables: OvaleDB ## SavedVariablesPerCharacter: OvaleDBPC -- 1.7.9.5