This commit is contained in:
Will
2026-05-22 02:30:45 -04:00
committed by GitHub
parent 78711642c0
commit 9822911d5e
+2 -2
View File
@@ -96,7 +96,7 @@
// No adjacency checks
var/resolved = W.resolve_attackby(A, src, click_parameters = params)
if(!resolved && A && W)
if((resolved != ITEM_INTERACT_SUCCESS) && A && W)
W.afterattack(A,src,1,params)
return
@@ -108,7 +108,7 @@
if(A.Adjacent(src) || (W && W.attack_can_reach(src, A, W.reach))) // see adjacent.dm, allows robots to use ranged melee weapons
SEND_SIGNAL(src, COMSIG_ROBOT_ITEM_ATTACK, W, src, params) //This is we ATTEMPTED to attack someone.
var/resolved = W.resolve_attackby(A, src, click_parameters = params)
if(!resolved && A && W)
if((resolved != ITEM_INTERACT_SUCCESS) && A && W)
W.afterattack(A, src, 1, params)
return
else