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

This commit is contained in:
TheGreatKitsune
2024-10-04 02:14:42 +02:00
committed by GitHub
parent 1f7cdee727
commit defa011d82
@@ -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