- added arcane power to default mage script
Sidoine De Wispelaere [07-05-09 - 09:11]
- added arcane power to default mage script
git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@79 d5049fe3-3747-40f7-a4b5-f36d6801af5f
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)