From 1a0d2d6e4e1391ccc8848bacba6a1c97bf84db2d Mon Sep 17 00:00:00 2001 From: shagu Date: Wed, 16 Nov 2016 23:27:28 +0100 Subject: [PATCH] castbar: change two global variables to local --- modules/castbar.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/castbar.lua b/modules/castbar.lua index 35dc23ea..69c9b4ce 100644 --- a/modules/castbar.lua +++ b/modules/castbar.lua @@ -336,8 +336,8 @@ pfUI:RegisterModule("castbar", function () pfUI.castbar.target.casterDB[mob] = nil return end - casttime = pfLocaleSpells[pfUI.cache["locale"]][spell].t / 1000 - icon = pfLocaleSpells[pfUI.cache["locale"]][spell].icon + local casttime = pfLocaleSpells[pfUI.cache["locale"]][spell].t / 1000 + local icon = pfLocaleSpells[pfUI.cache["locale"]][spell].icon pfUI.castbar.target.casterDB[mob] = {cast = spell, starttime = GetTime(), casttime = casttime, icon = icon} if UnitExists("target") and pfUI.castbar.target.casterDB[UnitName("target")] then if pfUI_config.castbar.target.hide_pfui == "1" then