The tutorial said this bit of coding is supposed to make the thing die if it's HP is 0.
Attack(mob/M as mob in oview(1))
if (M.HP <= 0) //if M's HP are at or below 0...
usr << "[M] is already dead!"
else //otherwise...
usr << "You attack [M]!"
oview() << "[usr] attacks [M]!"
var/damage = rand(1,10)
world << "[damage] damage!"
M.HP -= damage
M.DeathCheck()
if(src.HP <=0)
world << "[src] dies!"
del(src) //delete whatever just died
But if it goes to 0 HP it just says it's dead