mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-30 20:22:32 +00:00
- 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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user