ID:141093
 
Code:
DeathCheck()
if (src.hp == 0 || src.hp <= 0)
del(src)

Del()
if (src == usr)
if (team == "Defenders")
usr.loc = locate(50, 100, 1)
else
usr.loc = locate(51, 18, 1)
else
..()
usr.kills += 1
usr.ofpoints += 1
spawn() usr.MedalCheck()

attack(mob/M as mob in oview(1))
set category = "Combat"
src << "You attack [M]!"
M << "[usr] attacks you!"
var/dmg=src.str * rand(1,4)
s_damage(M, dmg, "blue")
M.hp -= dmg
M.DeathCheck()

mob
king
hp = 1000
density = 1
icon = 'guard.dmi'
Del()
usr.EndGameA()
..()


Problem description:

For some reason after every few attacks on the king my kills var goes up by 2 (i made a statpanle) can anyone think of why this is?
Ungh. No put usr in proc.
No make daily new help threads for that matter, too. Try to solve your problems on your own. Learn.