mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 03:27:05 +01:00
fixes emp flash runtime (#20923)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user