ID:272324
 
mob
enemies
Bump(mob/m) //when you bump into it
if(istype(m,/mob)) //making sure it's a mob
m.hp-- //lowers their HP
m.Death_Check() //eh... obvious.


It never does anything.
1. Bump() is called for an atom when it moves into a dense object. The argument passed into Bump() is what the atom bumps into. The way you have it - I don't know if this is how you intended it - is if a mob with the type /mob/enemies bumps into a mob, then it lowers the latter mob's HP.

2. Use the ismob() proc for this case.
In response to Darkmag1c1an11 (#1)
istype() works fine here. There's no need for him to switch.
In response to Popisfizzy (#2)
Well, it's not imperative that he change it, but I like it better >_>
In response to Darkmag1c1an11 (#3)
Darkmag1c1an11 wrote:
Well, it's not imperative that he change it, but I like it better >_>
if(ismob(whatever)) is just shorter from if(istype(whatever,/mbo)) >.>;
atom/movable
Bump(var/atom/a)
.=..()
a.Bumped(src) // 'a' will be bumped.
atom
proc
Bumped(var/atom/a)

mob
enemies
Bumped(var/atom/a) // when you bump into it.
if(ismob(a))
var/mob/m = a
m.hp--
m.Death_Check()

(Edited to fix errors)