ID:142345
 
Code:
    verb
Punch()
set category="Fighting"
if(src.rest)
src<<"not while resting"
return
if(src.PK==0)
src<<"Your in a Non Player Killing Area"
return
if(src.Attacking == 0)
var/obj/K = new/obj/Sword
src.Attacking = 1
K.dir = src.dir
K.loc = src.loc
step(K, dir)
var/turf/X = K.loc
spawn(6)
del(K)
for(var/mob/M as mob in X)

if(M == src)
continue
var/colour = "lightcoral"
var/damage = rand(src.Str)
if(prob(70))
src<<"You attack [M] for [damage] damage!"
M<<"[src] attacks you for [damage] damage!"
s_damage(src,damage,colour)
M.Health -= damage
if(M.Health <= 0)
Death(M)
else
src<<"You attempt to attack [M] but miss!"
M<<"[src] attempts to attack you but misses!"
sleep(7)
src.Attacking =0


Problem description:
everything works fine, but the mob thats getting hurt wont die, the death check works fine, all other moves work, any help?

if(M.Health <= 0)

Should only be checking that in Death no?