Quantcast
WoWInterface: SVN - Critline - Path Comparison - / Rev 26 and / Rev 25

WoWInterface SVN Critline

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 26 to Rev 25
    Reverse comparison

Rev 26 → Rev 25

trunk/AuraTracker.lua
383,9 → 383,12
if CombatLog_Object_IsA(destFlags, COMBATLOG_FILTER_ME) or addon:IsMyPet(destFlags, destGUID) then
-- register our own and our pet's auras
auraTable = playerAuras
elseif not self:IsPvPTarget(destGUID) and band(destFlags, COMBATLOG_OBJECT_REACTION_FRIENDLY) == 0 then
else
-- and also those of non friendly NPCs
auraTable = enemyAuras
local unitType = band(destGUID:sub(1, 5), 0x007)
if (unitType ~= 0 and unitType ~= 4) and (band(destFlags, COMBATLOG_OBJECT_REACTION_FRIENDLY) == 0) then
auraTable = enemyAuras
end
end
 
if auraTable then
457,7 → 460,8
local sourceType
 
if sourceGUID then
if self:IsPvPTarget(sourceGUID) then
local unitType = bit.band(sourceGUID:sub(1, 5), 0x007)
if unitType == 0 or unitType == 4 then
-- this is a player or a player's permanent pet
source = PVP
sourceType = "pvp"
480,10 → 484,4
end
session[spellID] = aura
scrollFrame:Update()
end
 
 
function auraTracker:IsPvPTarget(guid)
local unitType = band(guid:sub(1, 5), 0x007)
return unitType == 0 or unitType == 4
end
\ No newline at end of file