Fix unintended inbelly item interactions caused by copypaste

This commit is contained in:
Heroman3003
2020-08-19 13:41:32 +10:00
committed by GitHub
parent 492a896894
commit 9df463f53a

View File

@@ -111,12 +111,11 @@
trigger_aiming(TARGET_CAN_CLICK)
return 1
// VOREStation Addition Start: inbelly item interaction
// VOREStation Addition Start: inbelly interaction
if(isbelly(loc) && (loc == A.loc))
if(W)
var/resolved = W.resolve_attackby(A,src)
if(!resolved && A && W)
W.afterattack(A, src, 1, params) // 1: clicking something Adjacent
to_chat(src, "The firm confines prevent that kind of dexterity!") //Only hand-based interactions in bellies
return
else
if(ismob(A)) // No instant mob attacking
setClickCooldown(get_attack_speed())