- Fixed bug with 'lazy OR'

- Fixed bug with object deletion in proc called from deleted object proc

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@264 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
panurgomatic
2010-10-10 21:34:34 +00:00
parent a3b50fc504
commit 062bcd0ff0

View File

@@ -52,7 +52,9 @@ DNA INJECTOR
M.dna.struc_enzymes = setblock(M.dna.struc_enzymes,block,dna,3)
domutcheck(M, null,1)
uses--
del(src)
spawn(0)//this prevents the collapse of space-time continuum
del(src)
return uses
/obj/item/weapon/dnainjector/attack(mob/M as mob, mob/user as mob)
@@ -78,9 +80,9 @@ DNA INJECTOR
for(var/mob/O in viewers(M, null))
O.show_message(text("\red [] has been injected with [] by [].", M, src, user), 1)
//Foreach goto(192)
if (!istype(M, /mob/living/carbon/human) || !istype(M, /mob/living/carbon/monkey))
if (!(istype(M, /mob/living/carbon/human) || istype(M, /mob/living/carbon/monkey)))
user << "\red Apparently it didn't work."
return
inject(M)
user.show_message(text("\red You inject [M]"))
return
return