obj
CeroHead
icon = 'Cero.dmi'
icon_state = "trail"
var/mob/O
New(location, owner) // this is for
O = owner
..()
Bump(atom/A) // when it bumps something
if(ismob(A)) // if it is a mob, damage the mob
var/mob/M = O
var/damage = round(O.reiatsu*0.50)
M.health -= damage
M.Death(O)
New()
spawn(rand(20,20))
del src
obj
Cero
icon = 'Cero.dmi'
density = 1
var/mob/O
New(location, owner) // this is for
O = owner
..()
Bump(atom/A) // when it bumps something
if(ismob(A)) // if it is a mob, damage the mob
var/mob/M = O
var/damage = round(O.reiatsu*0.50)
M.health -= damage
M.Death(A)
Move()
new/obj/CeroHead(src.loc)
..()
mob
verb
Cero()
set category = "Combat/Abilties"
set name = "Cero"
if(usr.Doing==1)
return
if(usr.reiatsu <= 600)
usr<<"You do not have enough reiatsu"
return
var/obj/Cero/E1 = new /obj/Cero()
walk(E1,usr.dir)
src.reiatsu -= 500
E1.loc = usr.loc
usr.Doing=1
sleep(20)
usr.Doing=0
del(E1)
Problem description:The problem is that, its not doing any damage.
You should have M=A since A is the atom that the Cero bumps into. Your O var above is useless.