Quantcast

frost mage: don't cast pet freeze if there is already finger of frost

Sidoine De Wispelaere [02-09-11 - 21:15]
frost mage: don't cast pet freeze if there is already finger of frost

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@355 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Filename
defaut/Mage.lua
diff --git a/defaut/Mage.lua b/defaut/Mage.lua
index 990aec7..a54229f 100644
--- a/defaut/Mage.lua
+++ b/defaut/Mage.lua
@@ -133,10 +133,10 @@ AddIcon help=main mastery=3
     unless InCombat() if BuffExpires(MAGEARMOR 400) and BuffExpires(MOLTENARMOR 400) and BuffExpires(ICEARMOR 400) Spell(MOLTENARMOR)

     if PetPresent(no) Spell(SUMMONWATERELEMENTAL)
-    if BuffPresent(FINGERSOFFROST stacks=1)  Spell(DEEPFREEZE)
+    if BuffPresent(FINGERSOFFROST stacks=1) Spell(DEEPFREEZE)
     if BuffPresent(BRAINFREEZE) and BuffPresent(FINGERSOFFROST) Spell(FROSTFIREBOLT)
     if BuffPresent(FINGERSOFFROST stacks=2) Spell(ICELANCE)
-    Spell(PETFREEZE)
+    unless BuffPresent(FINGERSOFFROST) Spell(PETFREEZE)
     if BuffPresent(FINGERSOFFROST stacks=2) Spell(ICELANCE)
     if BuffPresent(MOLTENARMOR) and {{manaPercent()*8} < target.timeToDie()} Spell(MAGEARMOR)
     if ManaPercent(less 5) and TargetDeadIn(less 60) Spell(EVOCATION)