From a848e2fc65491b4f0033261d9e46b9ea5234fcb1 Mon Sep 17 00:00:00 2001 From: Git-Nivrak <59925169+Git-Nivrak@users.noreply.github.com> Date: Fri, 3 May 2024 06:58:34 +0300 Subject: [PATCH] Fix synths being affected by boiler neurotoxin (#6197) # About the pull request For some reason the neurotoxin is an effect instead of a chemical and lacks the proper checks so it affected synths which is pretty funny # Explain why it's good for the game Consistency and it makes no sense # Testing Photographs and Procedure
Screenshots & Videos Put screenshots and videos here with an empty line between the screenshots and the `
` tags.
# Changelog :cl: fix: Synths no longer get affected by boiler's neurotoxin /:cl: --- code/datums/effects/neurotoxin.dm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/datums/effects/neurotoxin.dm b/code/datums/effects/neurotoxin.dm index 490ed213292b..b7402ca370fd 100644 --- a/code/datums/effects/neurotoxin.dm +++ b/code/datums/effects/neurotoxin.dm @@ -37,6 +37,10 @@ return FALSE if(affected_mob.stat == DEAD) return + + if(issynth(affected_atom)) + return + // General effects affected_mob.last_damage_data = cause_data affected_mob.apply_stamina_damage(stam_dam)