diff --git a/Ovale.toc b/Ovale.toc
index e1b67fd..205d437 100644
--- a/Ovale.toc
+++ b/Ovale.toc
@@ -3,7 +3,7 @@
## Notes: Show the icon of the next spell to cast
## Notes-frFR: Affiche l'icône du prochain sort à lancer
## Author: Sidoine
-## Version: 3.2.22
+## Version: 3.2.23
## OptionalDeps: Ace3, ButtonFacade, Recount
## SavedVariables: OvaleDB
## SavedVariablesPerCharacter: OvaleDBPC
diff --git a/OvaleFrame.lua b/OvaleFrame.lua
index bdfea13..56ccf45 100644
--- a/OvaleFrame.lua
+++ b/OvaleFrame.lua
@@ -152,12 +152,15 @@ do
local actionTexture, actionInRange, actionCooldownStart, actionCooldownDuration,
actionUsable, actionShortcut, actionIsCurrent, actionEnable, spellName, actionTarget, noRed = Ovale:GetActionInfo(element)
+ if noRed then
+ start = actionCooldownStart + actionCooldownDuration
+ end
if (node.params.nocd and node.params.nocd == 1 and start~=nil and start>Ovale.maintenant+1.5) then
action.icons[1]:Update(nil)
- else
+ else
action.icons[1]:Update(start, actionTexture, actionInRange, actionCooldownStart, actionCooldownDuration,
- actionUsable, actionShortcut, actionIsCurrent, actionEnable, spellName, actionTarget, noRed)
+ actionUsable, actionShortcut, actionIsCurrent, actionEnable, spellName, actionTarget)
end
action.spellName = spellName
@@ -223,10 +226,6 @@ do
if (Ovale.bug and not Ovale.traced) then
Ovale.trace = true
end
-
- if noRed then
- minAttente = actionCooldownStart + actionCooldownDuration
- end
end
local function UpdateIcons(self)
diff --git a/OvaleIcone.lua b/OvaleIcone.lua
index acf7054..c9745ee 100644
--- a/OvaleIcone.lua
+++ b/OvaleIcone.lua
@@ -2,7 +2,7 @@
local L = LibStub("AceLocale-3.0"):GetLocale("Ovale")
local function Update(self, minAttente, actionTexture, actionInRange, actionCooldownStart, actionCooldownDuration,
- actionUsable, actionShortcut, actionIsCurrent, actionEnable, spellName, actionTarget, noRed)
+ actionUsable, actionShortcut, actionIsCurrent, actionEnable, spellName, actionTarget)
if (minAttente~=nil and actionTexture) then