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
This commit is contained in:
John Willard
2022-05-13 07:59:26 -07:00
committed by GitHub
parent 2af1b6567c
commit 0a4d82046a
+1 -1
View File
@@ -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()