From 42c37d9de3bef2342be4fb21b4acd040c8ee135d Mon Sep 17 00:00:00 2001 From: kappa-sama Date: Thu, 8 Aug 2019 02:55:24 -0400 Subject: [PATCH] Revert "Update teleporter.dm" This reverts commit 2b3e53d7d620c819dc937087cd85a4624e79f7b4. --- code/game/machinery/teleporter.dm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/code/game/machinery/teleporter.dm b/code/game/machinery/teleporter.dm index 5af01269ab..64081a77e4 100644 --- a/code/game/machinery/teleporter.dm +++ b/code/game/machinery/teleporter.dm @@ -70,13 +70,13 @@ use_power(5000) if(!calibrated && prob(30 - ((accurate) * 10))) //oh dear a problem log_game("[M] ([key_name(M)]) was turned into a fly person") - if(iscarbon(M))//don't remove people from the round randomly you jerks - var/mob/living/carbon = M - if(M.dna) + if(ishuman(M))//don't remove people from the round randomly you jerks + var/mob/living/carbon/human/human = M + if(human.dna && human.dna.species.id == "human") to_chat(M, "You hear a buzzing in your ears.") - M.set_species(/datum/species/fly) + human.set_species(/datum/species/fly) - M.apply_effect((rand(120 - accurate * 40, 180 - accurate * 60)), EFFECT_IRRADIATE, 0) + human.apply_effect((rand(120 - accurate * 40, 180 - accurate * 60)), EFFECT_IRRADIATE, 0) calibrated = 0 return