From 73ebf1e68b2a871a1254ecc262ce9a0aad2ba233 Mon Sep 17 00:00:00 2001 From: coiax Date: Fri, 10 Mar 2017 22:09:05 +0000 Subject: [PATCH] Fixes ghosts being able to open the UI of non-haunted eightballs (#24882) They would never be able to vote or anything, but they might think it's haunted, when it is not. --- code/game/objects/items/eightball.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/game/objects/items/eightball.dm b/code/game/objects/items/eightball.dm index 452280da6b1..eb3a4172f71 100644 --- a/code/game/objects/items/eightball.dm +++ b/code/game/objects/items/eightball.dm @@ -155,7 +155,7 @@ return most_popular_answer -/obj/item/toy/eightball/ui_interact(mob/user, ui_key="main", datum/tgui/ui=null, force_open=0, datum/tgui/master_ui=null, datum/ui_state/state=observer_state) +/obj/item/toy/eightball/haunted/ui_interact(mob/user, ui_key="main", datum/tgui/ui=null, force_open=0, datum/tgui/master_ui=null, datum/ui_state/state=observer_state) ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open) if(!ui)