WoWInterface SVN MyThreat

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk/MyThreat
    from Rev 13 to Rev 14
    Reverse comparison

Rev 13 → Rev 14

MyThreat.lua
1,4 → 1,4
local MYTHREAT_VERSION = '1.3.3';
local MYTHREAT_VERSION = '1.3.4';
 
local options = {
type='group',
214,6 → 214,7
MyThreat = LibStub("AceAddon-3.0"):NewAddon("MyThreat", "AceConsole-3.0", "AceEvent-3.0");
 
MyThreat.threatSourceHandler = nil;
MyThreat.lastUpdate = 0;
 
MyThreat.targetGuid = nil;
 
831,10 → 832,17
 
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
MyThreat.toc
4,7 → 4,7
## Author: Brimm
## SavedVariables: MyThreatDB
## SavedVariablesPerCharacter: MyThreatDBPC
## Version: 1.3.3
## Version: 1.3.4
## X-Category: Interface Enhancements
## OptionalDeps: Ace3