From 85a8a7a35ff38b7513c1939f8ea7eaec399d86eb Mon Sep 17 00:00:00 2001 From: ZomgPonies Date: Mon, 6 Apr 2015 18:09:52 -0400 Subject: [PATCH] Fixes cane speed exploit --- code/modules/mob/living/carbon/human/human_organs.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/modules/mob/living/carbon/human/human_organs.dm b/code/modules/mob/living/carbon/human/human_organs.dm index 78d5c47e41c..241bebd1178 100644 --- a/code/modules/mob/living/carbon/human/human_organs.dm +++ b/code/modules/mob/living/carbon/human/human_organs.dm @@ -87,6 +87,9 @@ if (r_hand && istype(r_hand, /obj/item/weapon/cane)) stance_damage -= 2 + if(stance_damage < 0) + stance_damage = 0 + // standing is poor if(stance_damage >= 4 || (stance_damage >= 2 && prob(5))) if(!(lying || resting))