From e2a4fe878aa8092dd3d373695154f1f667771380 Mon Sep 17 00:00:00 2001 From: tercio Date: Wed, 27 Aug 2014 16:35:27 -0300 Subject: [PATCH] - Rework on Activity Time, now it will be more accurate with warcraftlogs.com - Added two new customs: Damage Activity Time and Healing Activity Time. - TimeAttack plugin now have only have six time amount options. - TimeAttack plugin can now share damage results with other players with the same class in the realm. - New API: instance:EnableInstance() active and open a closed instance. - New API: _detalhes:RegisterBackgroundTask (name, func, priority, ...) background task runs slowly when player isn't in group nor inside instances. - New API: _detalhes:UnregisterBackgroundTask (name) cancel a backgroup task. - New API: plugin:RegisterPluginComm (prefix, func) register for receive comm msg. - New API: plugin:UnregisterPluginComm (prefix) unregister a previous registred comm. - New API: plugin:SendPluginCommMessage (prefix, channel, ...) send a msg through channel. - New API: _detalhes:IsConnected() return true is Details! is connected to realm comm channel. - New API: plugin:IsPluginEnabled() return is the plugin is enabled. --- boot.lua | 4 ++-- plugins/Details_TimeAttack/Details_TimeAttack.lua | 10 ++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/boot.lua b/boot.lua index bacd598f..bb8087cd 100644 --- a/boot.lua +++ b/boot.lua @@ -3,8 +3,8 @@ _ = nil _detalhes = LibStub("AceAddon-3.0"):NewAddon("_detalhes", "AceTimer-3.0", "AceComm-3.0", "AceSerializer-3.0", "NickTag-1.0") - _detalhes.build_counter = 46 --it's 49 for release - _detalhes.userversion = "v1.24.0" + _detalhes.build_counter = 46 --it's 50 for release + _detalhes.userversion = "v1.24.1" _detalhes.realversion = 26 _detalhes.version = _detalhes.userversion .. " (core " .. _detalhes.realversion .. ")" diff --git a/plugins/Details_TimeAttack/Details_TimeAttack.lua b/plugins/Details_TimeAttack/Details_TimeAttack.lua index e80682d3..b9ea60c0 100644 --- a/plugins/Details_TimeAttack/Details_TimeAttack.lua +++ b/plugins/Details_TimeAttack/Details_TimeAttack.lua @@ -1040,6 +1040,16 @@ end return end end + for index, data in ipairs (TimeAttack.HistoryPanelObject.Recently) do + if (data.ID == id) then + return + end + end + for index, data in ipairs (TimeAttack.db.history) do + if (data.ID == id) then + return + end + end --add TimeAttack:AddRealmData (damage, time, ilevel, age, id, class, source) end