From aad62fcec153483693d769eda832e23a042e8adc Mon Sep 17 00:00:00 2001 From: Markolie Date: Tue, 28 Jul 2015 01:38:37 +0200 Subject: [PATCH] Allow ghosts to access dna modifier console --- code/game/dna/dna_modifier.dm | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/code/game/dna/dna_modifier.dm b/code/game/dna/dna_modifier.dm index 9f44fb2542e..81be2a537b2 100644 --- a/code/game/dna/dna_modifier.dm +++ b/code/game/dna/dna_modifier.dm @@ -421,7 +421,13 @@ if(!isnull(connected)) attack_hand(user) break - else if(!..()) + else + if(..(user)) + return + + if(stat & (NOPOWER|BROKEN)) + return + ui_interact(user) /** @@ -436,8 +442,7 @@ * @return nothing */ /obj/machinery/computer/scan_consolenew/ui_interact(mob/user, ui_key = "main", var/datum/nanoui/ui = null, var/force_open = 1) - - if(user == connected.occupant || user.stat) + if(user == connected.occupant) return // this is the data which will be sent to the ui