GetStats("target") |
end |
|
local function tooltipScanner(guid) |
local tooltip = TestTooltip or CreateFrame("GameTooltip","TestTooltip",UIParent,"GameTooltipTemplate") |
tooltip:SetOwner(UIParent, "ANCHOR_NONE") |
tooltip:SetPoint("CENTER",UIParent,"CENTER") |
tooltip:ClearLines() |
tooltip:SetHyperlink('unit:' .. guid) |
tooltip:Show() |
local printline |
local line2 = TestTooltipTextLeft2:GetText() |
local line3 = TestTooltipTextLeft3:GetText() |
if string.match(line2, "Level %d+") then |
printline = string.match(line2, "%d+") |
elseif string.match(line3, "Level %d+") then |
printline = string.match(line3, "%d+") |
end |
if tonumber(printline) then |
tooltip:Hide() |
return tonumber(printline) |
else |
debugprint(4,printline) |
return false |
end |
end |
|
function EnemyScanner2:COMBAT_LOG_EVENT_UNFILTERED(_, _, minievent, _, guidsource, source, sourceflags, sourceflagsraid, guidtarget, target, targetflags, targetflagsraid, ...) |
if isTargetHostile(sourceflags) then --and not UnitIsPVPSanctuary("player") then |
if guidsource == '' then |
if debug then |
ChatFrame4:AddMessage(minievent..", "..guidsource and guidsource or "nil, "..source and source or "nil, "..sourceflags..", "..sourceflagsraid,...,1,0,0) |
end |
debugprint(4,minievent..", "..guidsource and guidsource or "nil, "..source and source or "nil, "..sourceflags..", "..sourceflagsraid,...,1,0,0) |
return |
end |
|
source = source:match("[^-]+") |
local spellID,spellName = ... |
local level |