From 18f6a5493115a8a3b0afef476af9eb8911d5f37e Mon Sep 17 00:00:00 2001 From: Taracque Date: Fri, 2 Dec 2011 12:39:23 +0100 Subject: [PATCH] Bugfix: When an enemy with FS debuff on it dies, it no longer throws an error --- Change_log.txt | 3 +++ Elementarist.lua | 6 +++--- Elementarist.toc | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Change_log.txt b/Change_log.txt index 8d7aa42..e0eea68 100755 --- a/Change_log.txt +++ b/Change_log.txt @@ -1,3 +1,6 @@ +**v2.0.6** +* Bugfix: When an enemy with FS debuff on it dies, it no longer throws an error + **v2.0.5** * Change: 4.3 compatibility diff --git a/Elementarist.lua b/Elementarist.lua index f77e453..93e0831 100755 --- a/Elementarist.lua +++ b/Elementarist.lua @@ -1,5 +1,5 @@ ------------------------------------------------------------------------------- --- Elementarist 2.0.5 +-- Elementarist 2.0.6 -- -- Shows the advised spell for an elemental shaman for optimal DPS output. ------------------------------------------------------------------------------- @@ -8,7 +8,7 @@ Elementarist = {Locals = {}} local L = Elementarist.Locals -Elementarist.versionNumber = '2.0.5' +Elementarist.versionNumber = '2.0.6' Elementarist.playerName = UnitName("player") Elementarist.playerGUID = UnitGUID("player") Elementarist.targetGUID = nil @@ -307,7 +307,7 @@ function Elementarist:RemoveFromTables(guid) Elementarist:Debug('Enemy died:', Elementarist.person["foeCount"] .. " " .. guid) end if (Elementarist.debuffCooldowns[guid]) then - table.remove(Elementarist.debuffCooldowns, guid) + Elementarist.debuffCooldowns[guid]=nil Elementarist:UpdateDebuffTracker() end end diff --git a/Elementarist.toc b/Elementarist.toc index e8bd7a3..201e91c 100755 --- a/Elementarist.toc +++ b/Elementarist.toc @@ -2,7 +2,7 @@ ## Title: Elementarist ## Notes: Elemental shaman spell rotation helper ## Author: Taracque, Felmosórongy of Arathor -## Version: 2.0.5 +## Version: 2.0.6 ## SavedVariables: ElementaristDB ## OptionalDeps: OmniCC, SpellFlash ## Dependencies: -- 1.7.9.5