From c21ebadc12964f97ea5aa916b200bf185614064a Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Sat, 14 May 2022 01:11:18 +0200 Subject: [PATCH] [MIRROR] Fixes pants altars being spammable [MDB IGNORE] (#13591) * Fixes pants altars being spammable (#66911) The cooldown doesn't start until the pants is finished being made, so while its still making the pants, you can spam the shit out of it * Fixes pants altars being spammable Co-authored-by: John Willard <53777086+JohnFulpWillard@users.noreply.github.com> --- code/game/objects/structures/maintenance.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/game/objects/structures/maintenance.dm b/code/game/objects/structures/maintenance.dm index 3d6d3318d37..bcd82ece0a6 100644 --- a/code/game/objects/structures/maintenance.dm +++ b/code/game/objects/structures/maintenance.dm @@ -148,7 +148,7 @@ at the cost of risking a vicious bite.**/ if(!isnull(chosen_color) && user.canUseTopic(src, BE_CLOSE)) pants_color = chosen_color if("Create Artefact") - if(!COOLDOWN_FINISHED(src, use_cooldown_duration)) + if(!COOLDOWN_FINISHED(src, use_cooldown) || status != ALTAR_INACTIVE) to_chat(user, span_warning("[src] is not ready to create something new yet...")) return pants_stageone()