From 91a0f005e22ad3709af7354cdd191c922d6fe834 Mon Sep 17 00:00:00 2001 From: Sidoine De Wispelaere Date: Sun, 5 Jul 2009 09:11:27 +0000 Subject: [PATCH] - added arcane power to default mage script git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@79 d5049fe3-3747-40f7-a4b5-f36d6801af5f --- Condition.lua | 11 ++++++++++- defaut/Mage.lua | 2 ++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Condition.lua b/Condition.lua index 2b685a1..8d16200 100644 --- a/Condition.lua +++ b/Condition.lua @@ -1,4 +1,4 @@ -local LBCT = LibStub("LibBabble-CreatureType-3.0"):GetLookupTable() +local LBCT = LibStub("LibBabble-CreatureType-3.0"):GetLookupTable() local runeType = { @@ -313,6 +313,15 @@ Ovale.conditions= return timeLeft-tempsMax end end, + DebuffPresent = function(condition) + local timeLeft, stacksLeft = GetTargetAura(condition, "HARMFUL", "player") + + if (timeLeft and (not condition.stacks or stacksLeft>=condition.stacks)) then + return 0 + else + return nil + end + end, HasFullControl = function(condition) return testbool(HasFullControl(), condition[1]) end, diff --git a/defaut/Mage.lua b/defaut/Mage.lua index ada40ff..40ab90d 100644 --- a/defaut/Mage.lua +++ b/defaut/Mage.lua @@ -17,6 +17,7 @@ Define(FIREBALL 133) Define(ARCANEBARRAGE 44425) Define(ARCANEMISSILES 5143) Define(ARCANEBLAST 30451) +Define(ARCANEPOWER 12042) Define(COMBUSTION 11129) Define(ICYVEINS 12472) @@ -67,6 +68,7 @@ AddIcon AddIcon { + if DebuffPresent(ARCANEBLAST stacks=2) Spell(ARCANEPOWER) Spell(COMBUSTION) Spell(ICYVEINS) Spell(PRESENCEOFMIND) -- 1.7.9.5