obj
Blast
icon = 'akumablast.dmi'
density = 1
Bump(A)
if(ismob(A))
var/mob/M = A
if(M.PK==0||M.friendly)
return
var/damage = round(src.nin*1.25)
if(damage >= 1)
M.health -= damage
view(M) << "[M] was hit with the blast for [damage] damage!!"
del(src)
M.Death(usr)
del(src)
if(istype(A,/turf/))
var/turf/T = A
if(T.density)
del(src)
if(istype(A,/obj/))
del(src)
Problem description:
For some reason the object hitting the opponent deducts the health from them, even to negative. But it doesn't use the death proc on them, killing them and sending them to the hospital.
M.Death(usr)
You're deleting the object before Death() is called.