fixing detaining mode (#25334)

This commit is contained in:
HMBGERDO
2024-05-05 20:38:54 +02:00
committed by GitHub
parent 4949f0b71e
commit 9f7d4a128e
2 changed files with 5 additions and 6 deletions
@@ -285,12 +285,11 @@
back_to_hunt()
return
if(no_handcuffs) // should we not cuff?
if(!(iscarbon(target) && target.canBeHandcuffed()))
back_to_idle()
return
if(!(iscarbon(target) && target.canBeHandcuffed()))
back_to_idle()
if(no_handcuffs) // should we not cuff?
return
if(currently_cuffing)
@@ -347,14 +347,14 @@
back_to_hunt()
return
// target is stunned and nearby
if(no_handcuffs) // should we not cuff?
back_to_idle()
return
if(!(iscarbon(target) && target.canBeHandcuffed()))
back_to_idle()
return
if(no_handcuffs) // should we not cuff?
return
if(currently_cuffing)
return