Fix handcuffing (#82760)

## About The Pull Request

Changed this to an early return but then didn't invert the condition


## Changelog

🆑 Melbert
fix: You can handcuff people with 2 arms and you can no longer handcuff
people with 0 arms
/🆑
This commit is contained in:
MrMelbert
2024-04-18 21:01:14 -05:00
committed by GitHub
parent 1134a470a2
commit 17455d7db4
+2 -3
View File
@@ -76,7 +76,7 @@
if(!iscarbon(target_mob))
return
attempt_to_cuff(target_mob, user) // avoid locking up the attack chain with sleeps
attempt_to_cuff(target_mob, user)
/// Handles all of the checks and application in a typical situation where someone attacks a carbon victim with the handcuff item.
/obj/item/restraints/handcuffs/proc/attempt_to_cuff(mob/living/carbon/victim, mob/living/user)
@@ -93,9 +93,8 @@
victim.balloon_alert(user, "already handcuffed!")
return
if(victim.canBeHandcuffed())
if(!victim.canBeHandcuffed())
victim.balloon_alert(user, "can't be handcuffed!")
to_chat(user, span_warning("[victim] doesn't have two hands..."))
return
victim.visible_message(