[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>
This commit is contained in:
SkyratBot
2022-05-13 16:11:18 -07:00
committed by GitHub
co-authored by John Willard
parent 9478f4f8db
commit c21ebadc12
+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()