Fixes an OOO issue with flashes (#20010)

This commit is contained in:
GDN
2023-01-04 15:57:28 -06:00
committed by GitHub
parent 04dc114cfa
commit 1d573c2ccc
+3 -3
View File
@@ -77,15 +77,15 @@
/obj/item/flash/proc/try_use_flash(mob/user = null)
if(broken)
return FALSE
if(cooldown >= world.time)
to_chat(user, "<span class='warning'>Your [name] is still too hot to use again!</span>")
return FALSE
cooldown = world.time + cooldown_duration
flash_recharge(user)
if(broken)
return FALSE
playsound(loc, use_sound, 100, 1)
flick("[initial(icon_state)]2", src)
set_light(2, 1, COLOR_WHITE)