/trunk
local MYTHREAT_VERSION = '1.3.3'; |
local MYTHREAT_VERSION = '1.3.4'; |
local options = { |
type='group', |
MyThreat = LibStub("AceAddon-3.0"):NewAddon("MyThreat", "AceConsole-3.0", "AceEvent-3.0"); |
MyThreat.threatSourceHandler = nil; |
MyThreat.lastUpdate = 0; |
MyThreat.targetGuid = nil; |
function MyThreat:COMBAT_LOG_EVENT_UNFILTERED(_, _, _, srcGuid, _, _, destGuid) |
if (MyThreat.targetGuid ~= nil and (destGuid == MyThreat.targetGuid or srcGuid == MyThreat.targetGuid)) then |
local cTime = GetTime(); |
MyThreat:Process(); |
if ((cTime - MyThreat.lastUpdate) > 0.250) then |
if (MyThreat.targetGuid ~= nil and (destGuid == MyThreat.targetGuid or srcGuid == MyThreat.targetGuid)) then |
MyThreat:Process(); |
MyThreat.lastUpdate = cTime; |
end |
end |
end |
## Author: Brimm |
## SavedVariables: MyThreatDB |
## SavedVariablesPerCharacter: MyThreatDBPC |
## Version: 1.3.3 |
## Version: 1.3.4 |
## X-Category: Interface Enhancements |
## OptionalDeps: Ace3 |