disable cooldown on the second icon
Sidoine De Wispelaere [04-17-11 - 10:56]
disable cooldown on the second icon
fixes item id for rogue poisons
git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@398 d5049fe3-3747-40f7-a4b5-f36d6801af5f
diff --git a/OvaleFrame.lua b/OvaleFrame.lua
index 6147a70..dbdde3a 100644
--- a/OvaleFrame.lua
+++ b/OvaleFrame.lua
@@ -330,7 +330,7 @@ do
icon:SetHelp(node.params.help)
icon:SetRangeIndicator(Ovale.db.profile.apparence.targetText)
icon:EnableMouse(not Ovale.db.profile.apparence.clickThru)
-
+ icon.cdShown = (l == 1)
if LBF then
icon:SetSkinGroup(self.skinGroup)
end
diff --git a/OvaleIcone.lua b/OvaleIcone.lua
index e291dc2..1841dbc 100644
--- a/OvaleIcone.lua
+++ b/OvaleIcone.lua
@@ -20,8 +20,10 @@ local function Update(self, element, minAttente, actionTexture, actionInRange, a
self.cd:Hide()
else
self.lastSound = nil
- self.cd:Show()
- self.cd:SetCooldown(self.debutAction, self.finAction - self.debutAction);
+ if self.cdShown then
+ self.cd:Show()
+ self.cd:SetCooldown(self.debutAction, self.finAction - self.debutAction);
+ end
end
end
@@ -227,6 +229,7 @@ function OvaleIcone_OnLoad(self)
self.SetHelp = SetHelp
self.SetFontScale = SetFontScale
self.SetRangeIndicator = SetRangeIndicator
+ self.cdShown = true
if Ovale.db.profile.clickThru then
self:EnableMouse(false)
end
diff --git a/defaut/Voleur.lua b/defaut/Voleur.lua
index f116654..ddaaf83 100644
--- a/defaut/Voleur.lua
+++ b/defaut/Voleur.lua
@@ -67,8 +67,8 @@ Define(SHADOWSTEPBUFF 36563)
Define(VANISHBUFF 11327)
#Items
-Define(INSTANTPOISON 43231)
-Define(DEADLYPOISON 43233)
+Define(INSTANTPOISON 6947)
+Define(DEADLYPOISON 2892)
#Talents
Define(TALENTCUTTOTHECHASE 2070)