Skip to content

Instantly share code, notes, and snippets.

@nefftd
Created January 19, 2015 12:53
Show Gist options
  • Save nefftd/6d0aa4eae990bc6d2555 to your computer and use it in GitHub Desktop.
Save nefftd/6d0aa4eae990bc6d2555 to your computer and use it in GitHub Desktop.
thiswerksiguess.lua
-- Dead
mod:provider 'dead' {
function(unit)
local isdead = UnitIsDead(unit)
local isghost = UnitIsGhost(unit)
return isdead,isghost
end,
updatefor = {'.*'},
events = {
['player'] = {'PLAYER_DEAD','PLAYER_UNGHOST','PLAYER_ALIVE'}
['.*'] = {'UNIT_HEALTH'},
},
timer = { ['.*'] = .5 },
resolve = true,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment