switched version numers to use the same syntax than in the other addons

René Welbers [01-25-16 - 11:01]
switched version numers to use the same syntax than in the other addons
added debuff update
outcommented debug output
Filename
Events.lua
Srendarr.lua
Srendarr.txt
diff --git a/Events.lua b/Events.lua
index 050083d..f42082d 100644
--- a/Events.lua
+++ b/Events.lua
@@ -428,14 +428,13 @@ function Srendarr.OnEffectChanged(_, change, buff, name, unit, start, finish, st
     else -- adding or updating an aura
         local isShield = abilityType == ABILITY_TYPE_DAMAGESHIELD
         if (finish > start) then -- timed ability
-
             if(effectType == BUFF_EFFECT_TYPE_DEBUFF) then

-                d('abilityId', abilityId)
-                d('abilityName', name)
-                d('buff', buff)
-                d('effectType', effectType)
-                d('statufEffectType', statusEffectType)
+--                d('abilityId', abilityId)
+--                d('abilityName', name)
+--                d('buff', buff)
+--                d('effectType', effectType)
+--                d('statufEffectType', statusEffectType)
                 if (Srendarr:IsWatchedTimed(name)) then
                     auraFrameDebuffs:AddAura(1, 1, name, icon, start, finish, isShield, abilityType, buff, abilityId, effectType)
                 end
diff --git a/Srendarr.lua b/Srendarr.lua
index e8a11b7..ef4d770 100644
--- a/Srendarr.lua
+++ b/Srendarr.lua
@@ -3,7 +3,7 @@
     ----------------------------------------------------------
     *
     *
-    * Version 1.60
+    * Version 1.6.1
     * Kith, Garkin, silentgecko
     *
     *
@@ -13,7 +13,7 @@ local L

 Srendarr.name               = 'Srendarr'
 Srendarr.slash              = '/srendarr'
-Srendarr.version            = '1.60'
+Srendarr.version            = '1.6.1'
 Srendarr.versionDB          = 2

 -- CONSTANTS
@@ -275,12 +275,13 @@ end
 function Srendarr:UpdateAuras()
     self:StripAuras()

-    local numAuras = GetNumBuffs('player')
-    local auraFrameShort  = self.auraFrames[1]
-    local auraFrameDebuffs  = self.auraFrames[3]
-    local auraFrameLong = self.db.combineBuff and self.auraFrames[1] or self.auraFrames[2]
-    local updateShort = false
-    local updateLong = false
+    local numAuras         = GetNumBuffs('player')
+    local auraFrameShort   = self.auraFrames[1]
+    local auraFrameDebuffs = self.auraFrames[3]
+    local auraFrameLong    = self.db.combineBuff and self.auraFrames[1] or self.auraFrames[2]
+    local updateShort      = false
+    local updateLong       = false
+    local updateDebuff     = false

     if (self.db.showTargetAurasDebuff) then
         local numAurasTarget = GetNumBuffs('reticleover')
@@ -329,14 +330,10 @@ function Srendarr:UpdateAuras()

             if (finish > start) then -- timed ability
                 if(effectType == BUFF_EFFECT_TYPE_DEBUFF) then
-
-                    d('abilityId', abilityId)
-                    d('abilityName', name)
-                    d('buff', buff)
-                    d('effectType', effectType)
-                    d('statufEffectType', statusEffectType)
                     if (Srendarr:IsWatchedTimed(name)) then
                         auraFrameDebuffs:AddAura(1, 1, name, icon, start, finish, isShield, abilityType, buff, abilityId, effectType)
+                        updateDebuff = true
+                        updateShort = true
                     end
                 else
                     if (finish - start < self.db.shortBuffThreshold) then
@@ -381,6 +378,9 @@ function Srendarr:UpdateAuras()
     if (updateShort) then
         auraFrameShort:UpdateDisplay()
     end
+    if (updateDebuff) then
+        auraFrameDebuffs:UpdateDisplay()
+    end
     if (updateLong) then
         auraFrameLong:UpdateDisplay()
     end
diff --git a/Srendarr.txt b/Srendarr.txt
index 63ca0ec..2ac5a1e 100644
--- a/Srendarr.txt
+++ b/Srendarr.txt
@@ -1,6 +1,6 @@
 ## Title: |c67b1e9S|c4779ce'rendarr|r
 ## Description: Adds graphical tracking of buffs and debuffs on both yourself and others in a manner that meshes with the stock interface theme.
-## Version: 1.60
+## Version: 1.6.1
 ## Author: Kith, |cEFEBBEGarkin|r, |c4779cesilentgecko|r
 ## APIVersion: 100013
 ## SavedVariables: SrendarrDB