Quantcast

- bug when no script

Sidoine De Wispelaere [02-27-09 - 20:53]
- bug when no script

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@23 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Filename
OvaleFrame.lua
defaut/Guerrier.lua
diff --git a/OvaleFrame.lua b/OvaleFrame.lua
index 9624721..49fe473 100644
--- a/OvaleFrame.lua
+++ b/OvaleFrame.lua
@@ -121,6 +121,10 @@ do
 		local maxWidth = 0
 		local top = 0

+		if (not Ovale.masterNodes) then
+			return;
+		end
+
 		for k,node in pairs(Ovale.masterNodes) do
 			if (not self.icone[k]) then
 				self.icone[k] = CreateFrame("Frame",nil,self.frame,"OvaleIcone");
diff --git a/defaut/Guerrier.lua b/defaut/Guerrier.lua
index f629993..a0a365c 100644
--- a/defaut/Guerrier.lua
+++ b/defaut/Guerrier.lua
@@ -72,8 +72,13 @@ AddIcon
      {
         Spell(VICTORY usable=1)

-       # if TargetLifePercent(less 20) Spell(EXECUTE)
-        Spell(EXECUTE usable=1)
+		if TargetLifePercent(less 20)
+		{
+			if Mana(more 39) Spell(WHIRLWIND)
+			if Mana(more 44) Spell(BLOODTHIRST)
+			if BuffPresent(SLAMBUFF) and Mana(more 29) Spell(SLAM)
+			Spell(EXECUTE)
+        }

         if HasShield() Spell(SHIELDSLAM)
         Spell(SHOCKWAVE)
@@ -112,7 +117,7 @@ AddIcon

 AddIcon
 {
-     if Mana(more 50)
+     if Mana(more 66)
      {
         if CheckBoxOn(multi)
            Spell(CLEAVE doNotRepeat=1)