From b449dbbfb7997d3ff5712418cec4f8489d0042f3 Mon Sep 17 00:00:00 2001 From: SkeletalElite Date: Mon, 21 Nov 2022 23:17:27 -0800 Subject: [PATCH] Fixes Riot Dart Damage Exploit (#71261) Fixes an issue where riot darts would do damage even if they had no pen in them if recovered after being fired while modified to be able to accept pens ## About The Pull Request Fixes an issue where riot darts would do damage even if they had no pen in them if recovered after being fired while modified to be able to accept pens Fixes #71084 ## Why It's Good For The Game bug bad ## Changelog :cl: fix: Riot darts no longer do damage with no pen inserted if recovered after being fired while modified to accept pens. /:cl: --- code/modules/projectiles/projectile/reusable/foam_dart.dm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/code/modules/projectiles/projectile/reusable/foam_dart.dm b/code/modules/projectiles/projectile/reusable/foam_dart.dm index 55d6488bb8f..4bdaec85519 100644 --- a/code/modules/projectiles/projectile/reusable/foam_dart.dm +++ b/code/modules/projectiles/projectile/reusable/foam_dart.dm @@ -21,14 +21,13 @@ newcasing.modified = modified var/obj/projectile/bullet/reusable/foam_dart/newdart = newcasing.loaded_projectile newdart.modified = modified - if(modified) - newdart.damage = 5 - newdart.nodamage = FALSE newdart.damage_type = damage_type if(pen) newdart.pen = pen pen.forceMove(newdart) pen = null + newdart.damage = 5 + newdart.nodamage = FALSE newdart.update_appearance()