WoWInterface SVN MyThreat

Compare Revisions

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

Rev 14 → Rev 13

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