mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-14 00:23:29 +01:00
Fixes runtime with sound emotes (#22275)
* Check if emote can be ran before checking cooldown * Minor styling change * Remove else statement * Removed duplicate can_run_emote from try_run_emote --------- Co-authored-by: Adrer <adrermail@gmail.com>
This commit is contained in:
@@ -28,6 +28,9 @@
|
||||
return FALSE
|
||||
var/silenced = FALSE
|
||||
for(var/datum/emote/P in key_emotes)
|
||||
// can this mob run the emote at all?
|
||||
if(!P.can_run_emote(src, intentional))
|
||||
continue
|
||||
if(!P.check_cooldown(src, intentional))
|
||||
// if an emote's on cooldown, don't spam them with messages of not being able to use it
|
||||
silenced = TRUE
|
||||
|
||||
Reference in New Issue
Block a user