Exploding tag problem in Developer Help
|
|
Code:
tag verb Explode() set category = "Exploding Tag" for(var/obj/ExplodingTag/T in world) if(T.Gowner==usr) if(T.tagset) flick("explode",T) sleep(5) del(T) for(var/mob/M in view(3,T)) var/damage=usr.nin*3 M<<"You have been hit by [usr]'s exploding tag for [damage] damage!" usr<<"You hit [M] with your exploding tag for [damage] damage!" M.health-=damage if(M.health<=0) M.Death(usr) for(var/mob/npcs/Bunshin/B in oview(3,T)) flick("smoke2",B) sleep(4) del(B) usr.verbs-= new /mob/tag/verb/Explode usr.verbs-= new /mob/tag/verb/Explode usr.verbs-= new /mob/tag/verb/Explode usr.verbs-= new /mob/tag/verb/Explode usr.verbs-= new /mob/tag/verb/Explode usr.verbs-= new /mob/tag/verb/Explode usr.verbs-= new /mob/tag/verb/Explode
|
Problem description:
Everything works fine to set it and stuff, but when i put it next to someone and i explode it, i get the damage instead of the mob(s) in the exploding tag area
|