Fix ghosts being able to spam sounds to players. (#9141)

This commit is contained in:
TheGreatKitsune
2024-10-03 20:14:42 -04:00
committed by GitHub
parent 1f7cdee727
commit defa011d82

View File

@@ -240,7 +240,7 @@
if (use_sound)
//CHOMPStation Edit
var/obj/belly/B = user.loc
if(!isbelly(B) || !(B.mode_flags & DM_FLAG_MUFFLEITEMS))
if(isliving(user) && (!isbelly(B) || !(B.mode_flags & DM_FLAG_MUFFLEITEMS)))
playsound(src, src.use_sound, 50, 0, -5)
//CHOMPStation Edit end