Fixes space kidnap being instant (#87654)

Yeah apparently the voidwalker kidnap was completely instant

https://github.com/tgstation/tgstation/pull/86031 replaced the callback
that checked for being incapacitated with the number 1

🆑
fix: Fixes voidwalker having an instant kidnap
/🆑

---------

Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com>
This commit is contained in:
Time-Green
2024-11-03 17:59:21 +01:00
committed by GitHub
co-authored by MrMelbert
parent 0e82c5d6b9
commit 7d139fca31
+4 -1
View File
@@ -39,7 +39,7 @@
var/obj/particles = new /obj/effect/abstract/particle_holder (victim, /particles/void_kidnap)
kidnapping = TRUE
if(do_after(parent, kidnap_time, victim, extra_checks = victim.incapacitated))
if(do_after(parent, kidnap_time, victim, extra_checks = CALLBACK(src, PROC_REF(check_incapacitated), victim)))
take_them(victim)
qdel(particles)
@@ -67,3 +67,6 @@
/datum/component/space_kidnap/proc/succesfully_kidnapped(mob/living/carbon/human/kidnappee)
SEND_SIGNAL(parent, COMSIG_VOIDWALKER_SUCCESFUL_KIDNAP, kidnappee)
/datum/component/space_kidnap/proc/check_incapacitated(mob/living/carbon/human/kidnappee)
return kidnappee.incapacitated