if (event == "VARIABLES_LOADED") then |
OnLoad(self) |
elseif (event == "COMBAT_LOG_EVENT_UNFILTERED") then |
local _, cmbEvent, sGUID, _, _, dGUID, _, dFlag = select(1, ...) |
local _, cmbEvent, sGUID, _, _, _, _, dFlag = select(1, ...) |
if (cmbEvent == "PARTY_KILL") then |
if (sGUID == UnitGUID("player") and KillDB.Enabled) then |
if (sGUID == UnitGUID("player") and CombatLog_Object_IsA(dFlag, COMBATLOG_FILTER_HOSTILE_PLAYERS) and KillDB.Enabled) then |
if (not KillTimer or (GetTime() - KillTimer > 60)) then |
PlaySoundFile("Interface\\AddOns\\KillingBlows\\Sounds\\firstblood.mp3") |
KillCounter = 0 |