From 570fd2756be58eb717ebf9576a0d1d885dc3378e Mon Sep 17 00:00:00 2001 From: Walter0o Date: Thu, 31 Jul 2014 10:38:34 +0200 Subject: [PATCH] robot computer emagging exploit fix so an emagged borg can in turn emag all others ? the more you know. seems extremely OP to me but i am just closing the exploit, not changing the game. Conflicts: code/game/machinery/computer/robot.dm --- code/game/machinery/computer/robot.dm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/code/game/machinery/computer/robot.dm b/code/game/machinery/computer/robot.dm index f5f5dcb0ae3..c9893075662 100644 --- a/code/game/machinery/computer/robot.dm +++ b/code/game/machinery/computer/robot.dm @@ -199,7 +199,10 @@ else if (href_list["magbot"]) if(src.allowed(usr)) var/mob/living/silicon/robot/R = locate(href_list["magbot"]) - if(R) + + // whatever weirdness this is supposed to be, but that is how the href gets added, so here it is again + if(istype(R) && istype(usr, /mob/living/silicon) && usr.mind.special_role && (usr.mind.original == usr) && !R.emagged) + var/choice = input("Are you certain you wish to hack [R.name]?") in list("Confirm", "Abort") if(choice == "Confirm") if(R && istype(R)) @@ -229,4 +232,4 @@ if(!R.scrambledcodes && !istype(R, /mob/living/silicon/robot/drone)) R.self_destruct() - return + return