From 0a4d82046a406372abcbd8cac1fa60d8e1db01d0 Mon Sep 17 00:00:00 2001 From: John Willard <53777086+JohnFulpWillard@users.noreply.github.com> Date: Fri, 13 May 2022 10:59:26 -0400 Subject: [PATCH] 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 --- 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 d1478610bba..f651c10ecde 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()