From d241c5dfeec6cf74dfcd140be6215d8872647673 Mon Sep 17 00:00:00 2001 From: Taracque Date: Tue, 4 Sep 2012 20:19:19 +0200 Subject: [PATCH] Made _ local everywhere. --- DKCrutch.lua | 9 ++++++--- DKCrutch.toc | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/DKCrutch.lua b/DKCrutch.lua index 89f288d..36291d6 100644 --- a/DKCrutch.lua +++ b/DKCrutch.lua @@ -1,5 +1,5 @@ ------------------------------------------------------------------------------- --- DKCrutch 0.5.4 +-- DKCrutch 0.5.5 -- -- Death Knight rune tracker and ability advisor ------------------------------------------------------------------------------- @@ -8,7 +8,7 @@ DKCrutch = {Locals = {}} local L = DKCrutch.Locals -DKCrutch.versionNumber = '0.5.4' +DKCrutch.versionNumber = '0.5.5' DKCrutch.talent = "" DKCrutch.isEnabled = false DKCrutch.talentUnsure = true @@ -349,6 +349,7 @@ function DKCrutch:hasDeBuff(unit, spellName, casterUnit) end function DKCrutch:hasBuff(unit, spellName, stealableOnly, getByID) + local _ local i = 1 while true do local name, rank, icon, count, buffType, duration, expirationTime, source, isStealable, _, spellId, _, _, v1 = UnitBuff(unit, i) @@ -423,7 +424,7 @@ function DKCrutch:ProcIcon(name,icon,d,e,value) end function DKCrutch:AdviseAbility() - local name,icon,count,d,e + local _,name,icon,count,d,e if (DKCrutch.talentUnsure) then DKCrutch:detectTalent() @@ -876,6 +877,7 @@ function DKCrutch:Update() if (not DKCrutchDB.advisorDisabled) and (InCombatLockdown()) then local spell = DKCrutch:AdviseAbility() + DKCrutch:Debug("Advised: " .. spell, DKCrutch.SpellList[spell]) if (spell) and (spell ~= "") then local inRange = IsSpellInRange(DKCrutch.SpellList[spell],"target") if (inRange) then @@ -892,6 +894,7 @@ function DKCrutch:Update() else if (DKCrutch.lastSpell ~= "") then DKCrutch.advisorFrame.texture:SetTexture( "" ) + DKCrutch.cooldownFrame:SetCooldown(-1, 0) DKCrutch.lastSpell = spell end end diff --git a/DKCrutch.toc b/DKCrutch.toc index 534fca7..a19c853 100644 --- a/DKCrutch.toc +++ b/DKCrutch.toc @@ -2,7 +2,7 @@ ## Title: DKCrutch ## Notes: Death Knight rune tracker and rotation helper ## Author: Taracque, Dšgrov‡s of Arathor -## Version: 0.5.4 +## Version: 0.5.5 ## SavedVariables: DKCrutchDB ## OptionalDeps: ## Dependencies: -- 1.7.9.5