/DeathNote
function DeathNote:Enable() |
f:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED") |
f:RegisterEvent("UPDATE_MOUSEOVER_UNIT") |
f:RegisterEvent("PLAYER_REGEN_ENABLED") |
f:RegisterEvent("CHAT_MSG_ADDON") |
f:RegisterEvent("PLAYER_LOGIN") |
end |
end |
local lastdamage |
local infight |
function f:PLAYER_REGEN_ENABLED() |
lastdamage = nil |
end |
end |
end |
if not nameexists then |
print("DeathNote: "..lastdamage.." killed you. Adding in the list.") |
print("DeathNote: "..lastdamage.." damaged you before you died. Adding in the list.") |
table.insert(DeathNoteDB[realmName],{lastdamage,note}) |
end |
end |