runtime error: Undefined operation: 40 / null
proc name: Attack (/mob/verb/Attack)
source file: Battle.dm,26
usr: Rickoshay (/mob/player)
src: Rickoshay (/mob/player)
call stack:
Rickoshay (/mob/player): Attack()
Code:
mob
verb
Attack()
if(usr.attacking || usr.dead || usr.frozen)
return
var/mob/m = locate(/mob) in obounds(usr, 5, dir) //get_step(usr, dir)
if(m)
if(m == usr || m == friendly || m.dead)
return
usr.attacking = 1
if(usr.dizzy)
if(usr.miss())
usr << "You miss due to being dizzy"
sleep(5)
usr.attacking = 0
return
//animate(usr, icon_state = "punch 1", loop=1)
var/rand_dmg = rand(1,10)
var/damage = round(rand_dmg * usr.str / m.def)
m.take_damage(damage, usr)
sleep(5)
usr.attacking = 0
Is m.def null?