adding TargetIsInterruptible function
Sidoine De Wispelaere [08-06-10 - 17:50]
adding TargetIsInterruptible function
git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@261 d5049fe3-3747-40f7-a4b5-f36d6801af5f
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