mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 11:43:31 +00:00
Fix ghosts being able to spam sounds to players. (#9141)
This commit is contained in:
@@ -240,7 +240,7 @@
|
|||||||
if (use_sound)
|
if (use_sound)
|
||||||
//CHOMPStation Edit
|
//CHOMPStation Edit
|
||||||
var/obj/belly/B = user.loc
|
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)
|
playsound(src, src.use_sound, 50, 0, -5)
|
||||||
//CHOMPStation Edit end
|
//CHOMPStation Edit end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user