bug fix for Mana(more)
Sidoine De Wispelaere [01-12-10 - 18:56]
bug fix for Mana(more)
git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@198 d5049fe3-3747-40f7-a4b5-f36d6801af5f
diff --git a/Condition.lua b/Condition.lua
index 89eeb89..25a408a 100644
--- a/Condition.lua
+++ b/Condition.lua
@@ -209,7 +209,7 @@ local function GetManaTime(mana, withBerserker)
return limit
else
if Ovale.state.mana>=mana then
- return Ovale.currentTime
+ return Ovale.currentTime-1
else
return nil
end
diff --git a/Ovale.lua b/Ovale.lua
index 027f064..389183d 100644
--- a/Ovale.lua
+++ b/Ovale.lua
@@ -263,6 +263,18 @@ local options =
Ovale.frame:Hide()
end
},
+ config =
+ {
+ name = "Configuration",
+ type = "execute",
+ func = function() Ovale:AfficherConfig() end
+ },
+ code =
+ {
+ name = "Code",
+ type = "execute",
+ func = function() Ovale:AfficherCode() end
+ }
}
}
}
@@ -1513,6 +1525,11 @@ function Ovale:ChargerDefaut()
end
function Ovale:AfficherConfig()
+ self.AceConfigDialog:SetDefaultSize("Ovale Apparence", 500, 550)
+ self.AceConfigDialog:Open("Ovale Apparence", configFrame)
+end
+
+function Ovale:AfficherCode()
self.AceConfigDialog:SetDefaultSize("Ovale", 500, 550)
self.AceConfigDialog:Open("Ovale", configFrame)
end
@@ -1616,4 +1633,4 @@ function Ovale:EnableOtherDebuffs()
return
end
self.otherDebuffsEnabled = true
-end
\ No newline at end of file
+end