- Fixes DNA injectors causing runtimes when injecting mobs with a null DNA var.

- Fixes statues and vox armalis simple_animal mobs causing infinite loops and crashing the mob controller on death.
- Fixes heavy lasers (and a few other unused projectiles) rotating incorrectly.
This commit is contained in:
TheDZD
2015-11-27 18:23:39 -05:00
parent 733dcac24a
commit dc94291235
4 changed files with 16 additions and 19 deletions
@@ -94,6 +94,9 @@
return uses
/obj/item/weapon/dnainjector/attack(mob/M as mob, mob/user as mob)
if(!M.dna) //You know what would be nice? If the mob you're injecting has DNA, and so doesn't cause runtimes.
return 0
if(ishuman(M)) // Would've done this via species instead of type, but the basic mob doesn't have a species, go figure.
var/mob/living/carbon/human/H = M
if(H.species.flags & NO_DNA_RAD)