From 191b3cde38b845261c57dc4e082d1d1be6165cb5 Mon Sep 17 00:00:00 2001 From: Timberpoes Date: Tue, 24 Nov 2020 13:27:42 +0000 Subject: [PATCH] Prevents mecha drills from stacking do_afters on the same target. (#55145) * Feex * Feex 2.0 Feexlectric Feexaloo * Whitespace purge --- code/modules/vehicles/mecha/equipment/tools/mining_tools.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/modules/vehicles/mecha/equipment/tools/mining_tools.dm b/code/modules/vehicles/mecha/equipment/tools/mining_tools.dm index 691f66e9d75..8f1ed86a70b 100644 --- a/code/modules/vehicles/mecha/equipment/tools/mining_tools.dm +++ b/code/modules/vehicles/mecha/equipment/tools/mining_tools.dm @@ -44,7 +44,8 @@ "[chassis] starts to drill [target]...", \ "You hear drilling.") - if(do_after_cooldown(target, source)) + // You can't drill harder by clicking more. + if(!(target in source.do_afters) && do_after_cooldown(target, source)) log_message("Started drilling [target]", LOG_MECHA) // Drilling a turf is a one-and-done procedure. if(isturf(target))