mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
Merge pull request #6484 from parasitoide/master
Can now attack robots with welders and crowbars on harm intent
This commit is contained in:
@@ -499,7 +499,7 @@
|
||||
M.install(src, user)
|
||||
return
|
||||
|
||||
if (istype(W, /obj/item/weapon/weldingtool))
|
||||
if (istype(W, /obj/item/weapon/weldingtool) && user.a_intent != I_HURT)
|
||||
if (src == user)
|
||||
to_chat(user, "<span class='warning'>You lack the reach to be able to repair yourself.</span>")
|
||||
return
|
||||
@@ -531,7 +531,7 @@
|
||||
for(var/mob/O in viewers(user, null))
|
||||
O.show_message(text("<font color='red'>[user] has fixed some of the burnt wires on [src]!</font>"), 1)
|
||||
|
||||
else if (W.is_crowbar()) // crowbar means open or close the cover
|
||||
else if (W.is_crowbar() && user.a_intent != I_HURT) // crowbar means open or close the cover
|
||||
if(opened)
|
||||
if(cell)
|
||||
to_chat(user, "You close the cover.")
|
||||
|
||||
Reference in New Issue
Block a user