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