mob/enemy
var/cursed = 0 // where its located
mob
priest
icon = 'base.dmi'
icon_state = "priest"
hp = 100
def = 0
New()
spawn() while(TRUE)
for(var/mob/enemy/M in oview(7,src))
var/obj/darkness/J = new(src.loc)
while(J && M in oview(7))
if(M.cursed == 0)
missile(J,src,M)
M.overlays+=image('base.dmi',"curse")
M.curse(M,1)
M.cursed = 1
sleep(10)
sleep(10)
sleep(10)
mpriest
icon = 'master.dmi'
mob/proc
curse(mob/M,dmg)
spawn for()
M.hp -= dmg
sleep(M.spd)
Problem description:
well the priest sends a "curse" onto the enemy but it doesn't shoot again until the mob is dead? could anyone point out why its not consistently shooting at mobs that aren't already cursed (M.cursed = 1)? Thank you for your help!
So add a M.cursed=0 somewhere.