From 54757c942b29d03444428722020b8ac768dd5bad Mon Sep 17 00:00:00 2001 From: Sidoine De Wispelaere Date: Sat, 6 Feb 2010 10:51:30 +0000 Subject: [PATCH] - fix for canStopChannelling - do not cast horn of winter if strength of earth totem - latency correction is an option (disabled by default) git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@222 d5049fe3-3747-40f7-a4b5-f36d6801af5f --- Locale-enUS.lua | 3 ++- Locale-frFR.lua | 3 ++- Ovale.lua | 23 +++++++++++++++++------ OvaleFrame.lua | 5 +++++ defaut/Chevalier.lua | 1 + 5 files changed, 27 insertions(+), 8 deletions(-) diff --git a/Locale-enUS.lua b/Locale-enUS.lua index 3905f5b..8705657 100644 --- a/Locale-enUS.lua +++ b/Locale-enUS.lua @@ -44,4 +44,5 @@ L["Les icônes se déplacent"] = "Scroll the icons" L["multidot"] = "Damage Over Time on multiple targets" L["buff"] = "Buffs" L["Inverser la boîte à cocher "] = "Toggle check box" -L["Ignorer les clics souris"] = "Ignore mouse clicks" \ No newline at end of file +L["Ignorer les clics souris"] = "Ignore mouse clicks" +L["Correction de la latence"] = "Latency correction" \ No newline at end of file diff --git a/Locale-frFR.lua b/Locale-frFR.lua index a1bdcbd..6a5e5a3 100644 --- a/Locale-frFR.lua +++ b/Locale-frFR.lua @@ -44,4 +44,5 @@ L["Les icônes se déplacent"] = true L["multidot"] = "Multicible pour DoTs" L["buff"] = "Améliorations" L["Inverser la boîte à cocher "] = true -L["Ignorer les clics souris"] = true \ No newline at end of file +L["Ignorer les clics souris"] = true +L["Correction de la latence"] = true \ No newline at end of file diff --git a/Ovale.lua b/Ovale.lua index 7d56400..6e8567c 100644 --- a/Ovale.lua +++ b/Ovale.lua @@ -223,6 +223,14 @@ local options = name = L["Ignorer les clics souris"], get = function(info) return Ovale.db.profile.apparence.clickThru end, set = function(info, value) Ovale.db.profile.apparence.clickThru = value; Ovale:UpdateFrame() end + }, + latencyCorrection = + { + order = 16, + type = "toggle", + name = L["Correction de la latence"], + get = function(info) return Ovale.db.profile.apparence.latencyCorrection end, + set = function(info, value) Ovale.db.profile.apparence.latencyCorrection = value end } } }, @@ -1128,10 +1136,12 @@ function Ovale:InitCalculerMeilleureAction() v.toggled = nil end - for i,v in ipairs(self.lastSpell) do - if not self.spellInfo[v.name] or not self.spellInfo[v.name].toggle then - if self.maintenant - v.time<1 then - self:AddSpellToStack(v.name, v.time, v.time, v.time, v.nocd) + if (Ovale.db.profile.apparence.latencyCorrection) then + for i,v in ipairs(self.lastSpell) do + if not self.spellInfo[v.name] or not self.spellInfo[v.name].toggle then + if self.maintenant - v.time<1 then + self:AddSpellToStack(v.name, v.time, v.time, v.time, v.nocd) + end end end end @@ -1359,7 +1369,8 @@ function Ovale:CalculerMeilleureAction(element) end if restant