mob/proc/Attack(mob/player/M)
if(get_dist(src, M) < 2)
if(M != /mob/player)
return
else
M << "[src] attacked you!"
var/D = src.Attack - M.Defense
if(D <= 0)
D = 0
M.HP -= D
M.DeathCheck()
It's being called here.
Ice_Dragon_Weakling
icon_state = "Ice Dragon Weakling"
maxHP = 100
HP = 100
Attack = 15
Defense = 5
EXPGive = 65
GoldGive = 25
New()
walk_rand(src,30)
src.Attack()
proc/ItemGive()
if(prob(5))
ItemGive = pick(FDWIG)
Problem description:
Not attacking.
if(!istype(M,/mob/player))