cyborg topic exploit fixes

all kinds of fun here
This commit is contained in:
Walter0o
2014-07-31 10:20:24 +02:00
parent f0042741fc
commit ca78cb238a

View File

@@ -1095,17 +1095,23 @@
/mob/living/silicon/robot/Topic(href, href_list) /mob/living/silicon/robot/Topic(href, href_list)
..() ..()
if(usr != src)
return
if (href_list["showalerts"]) if (href_list["showalerts"])
robot_alerts() robot_alerts()
return return
if (href_list["mod"]) if (href_list["mod"])
var/obj/item/O = locate(href_list["mod"]) var/obj/item/O = locate(href_list["mod"])
if (O) if (isytpe(O) && (O.loc == src))
O.attack_self(src) O.attack_self(src)
if (href_list["act"]) if (href_list["act"])
var/obj/item/O = locate(href_list["act"]) var/obj/item/O = locate(href_list["act"])
if (!isytpe(O) || !(O.loc == src || O.loc == src.module))
return
if(activated(O)) if(activated(O))
src << "Already activated" src << "Already activated"
return return