mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-20 19:44:09 +01:00
Fixes an OOO issue with flashes (#20010)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user