fixes emp flash runtime (#20923)

This commit is contained in:
Contrabang
2023-04-25 21:14:46 +02:00
committed by GitHub
parent 9f2da3b2ee
commit b3cf5f88d9
+2 -2
View File
@@ -76,11 +76,11 @@
times_used = max(0, times_used) //sanity
/obj/item/flash/proc/try_use_flash(mob/user = null)
/obj/item/flash/proc/try_use_flash(mob/user)
if(broken)
return FALSE
if(cooldown >= world.time)
if(cooldown >= world.time && user)
to_chat(user, "<span class='warning'>Your [name] is still too hot to use again!</span>")
return FALSE
cooldown = world.time + cooldown_duration