verb/Attack(mob/M in oview(1))
set category = "Battle"
var/damage = src.str - M.def
if(M.client)
M.hp -= damage
src.Levelup()
M.Deathcheck(src)
else
if(usr.Waiting <= 0)
M.hp -= damage
usr.Waiting = 1
var/waittime = round(usr.Weaponwaitime * 2)
spawn(waittime)
usr.Waiting = 0
src.Levelup()
M.Deathcheck(src)
Problem description:
When my defense gets higher then the enemy's strenght, they do negative damage. I need help badly, anyone who helps will be greatly appritiated!!
if(damage <= 0) damage=0
Quite simple.
--Vito