mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-21 03:55:05 +01:00
Prevent maintenance drones from using chem dispensers. (#26058)
* Prevent maintenance drones from using chem dispensers. * emagged, message
This commit is contained in:
@@ -302,6 +302,12 @@
|
||||
default_unfasten_wrench(user, I, 4 SECONDS)
|
||||
|
||||
/obj/machinery/chem_dispenser/attack_ai(mob/user)
|
||||
if(isdrone(user))
|
||||
var/mob/living/silicon/robot/drone/drone = user
|
||||
if(!drone.emagged)
|
||||
// There's nothing a drone can do here that wouldn't violate their laws and/or the rules.
|
||||
to_chat(user, "<span class='warning'>Your safety protocols refuse to connect to [src].</span>")
|
||||
return
|
||||
return attack_hand(user)
|
||||
|
||||
/obj/machinery/chem_dispenser/attack_ghost(mob/user)
|
||||
|
||||
Reference in New Issue
Block a user