cooldown actions isavailable now calls parent pro (#17889)

This commit is contained in:
LazennG
2023-02-12 14:51:19 -08:00
committed by GitHub
parent 5e3f4b08a7
commit 4f4d2d8bbb

View File

@@ -731,7 +731,9 @@
button.maptext_height = 12
/datum/action/cooldown/IsAvailable()
return next_use_time <= world.time
if(next_use_time > world.time)
return FALSE
return ..()
/datum/action/cooldown/proc/StartCooldown()
next_use_time = world.time + cooldown_time