mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-21 21:17:44 +01:00
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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user