Skip to content

Commit

Permalink
Fixes an exploit with robobrains (#24394)
Browse files Browse the repository at this point in the history
* this hurts me more than it hurts you

* me when istype
  • Loading branch information
BiancaWilkson authored Mar 2, 2024
1 parent 3102e15 commit cc433a3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions code/modules/mob/living/brain/brain_emote.dm
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
if(!(B.container && istype(B.container, /obj/item/mmi))) // No MMI, no emotes
return FALSE

if(istype(B.container, /obj/item/mmi/robotic_brain)) //Robobrains can't be silenced and still emote
var/obj/item/mmi/robotic_brain/robobrain = B.container
return !robobrain.silenced

// So, brains can't really see their own emotes so we'll probably just want to send an extra message

/datum/emote/living/brain/alarm
Expand Down

0 comments on commit cc433a3

Please sign in to comment.