mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-18 18:44:48 +01:00
Fixes an exploit with robobrains (#24394)
* this hurts me more than it hurts you * me when istype
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user