[MIRROR] Fixes Unstable Mutagen not mutating on exposure (#3162)

* fixes mutagen (#56683)

* Fixes Unstable Mutagen not mutating on exposure

Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com>
This commit is contained in:
SkyratBot
2021-02-07 09:40:01 +00:00
committed by GitHub
co-authored by MrMelbert
parent cd2eaacf3e
commit 9fa7558654
@@ -40,7 +40,7 @@
/datum/reagent/toxin/mutagen/expose_mob(mob/living/carbon/exposed_mob, methods=TOUCH, reac_volume)
. = ..()
if(!. || !exposed_mob.has_dna() || HAS_TRAIT(exposed_mob, TRAIT_GENELESS) || HAS_TRAIT(exposed_mob, TRAIT_BADDNA))
if(!exposed_mob.has_dna() || HAS_TRAIT(exposed_mob, TRAIT_GENELESS) || HAS_TRAIT(exposed_mob, TRAIT_BADDNA))
return //No robots, AIs, aliens, Ians or other mobs should be affected by this.
if(((methods & VAPOR) && prob(min(33, reac_volume))) || (methods & (INGEST|PATCH|INJECT)))
exposed_mob.randmuti()