resurrecthud
name=""
icon='HUD.dmi'
icon_state="resurrect"
layer=91
screen_loc="11,7"
MouseEntered()
icon_state="resurrectmove"
MouseExited()
icon_state="resurrect"
Click(mob/M)
if(src in oview(2))
if(usr.mp<=20)
return
if(!M.client)
if(!M.dead)
usr.mp-=20
M.overlays+=new/obj/resurrect
usr.PowerAdd()
M.DeathOverlaysRemove()
M.hp=10
M.dead=0
M.walk=0
sleep(4)
M.overlays-=/obj/resurrect
Problem description:Ok when i stand next to a dead player and click resurrect it doesn't work, i have a cure spell just like this and it works.
Checking if M.dead is not true might prove hazardous.