[MIRROR] robots can use melee weapon range, runtime fix (#7362)

Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com>
Co-authored-by: CHOMPStation2 <chompsation2@gmail.com>
This commit is contained in:
CHOMPStation2
2023-12-08 09:22:06 -07:00
committed by GitHub
parent 4bd6109a28
commit 6c1fde4ff8
2 changed files with 6 additions and 6 deletions

View File

@@ -88,7 +88,7 @@
// cyborgs are prohibited from using storage items so we can I think safely remove (A.loc && isturf(A.loc.loc))
if(isturf(A) || isturf(A.loc))
if(A.Adjacent(src)) // see adjacent.dm
if(A.Adjacent(src) || (W && W.attack_can_reach(src, A, W.reach))) // see adjacent.dm, allows robots to use ranged melee weapons
var/resolved = A.attackby(W, src, 1)
if(!resolved && A && W)