diff --git a/code/game/gamemodes/cult/cult_structures.dm b/code/game/gamemodes/cult/cult_structures.dm index 30248c812a2..8d64ad8498f 100644 --- a/code/game/gamemodes/cult/cult_structures.dm +++ b/code/game/gamemodes/cult/cult_structures.dm @@ -273,7 +273,7 @@ //If the sacrifice was deleted somehow, we cant know exactly what happened. We'll assume it escaped .=-1 - else if(get_dist(src, sacrifice) > 5) + else if(get_dist(src, get_turf(sacrifice)) > 5) //If the sacrifice gets more than 5 tiles away, it has escaped .=-1 else if (sacrifice.stat == DEAD) @@ -290,7 +290,11 @@ if (sacrifice) walk_to(sacrifice,0) else - walk_towards(sacrifice,src, 10) + if (istype(sacrifice.loc, /turf) && !(sacrifice.is_ventcrawling) && !(sacrifice.buckled)) + //Suck the creature towards the pylon if possible + walk_towards(sacrifice,src, 10) + else + walk_to(sacrifice,0) //If we're not in a valid situation, cancel walking to prevent bugginess /obj/structure/cult/pylon/proc/finalize_sacrifice() sacrifice.visible_message(span("danger","\The [sacrifice]'s physical form unwinds as its soul is extracted from the remains, and drawn into the pylon!")) diff --git a/html/changelogs/Nanako-Pylonsuck.yml b/html/changelogs/Nanako-Pylonsuck.yml new file mode 100644 index 00000000000..2201c546446 --- /dev/null +++ b/html/changelogs/Nanako-Pylonsuck.yml @@ -0,0 +1,36 @@ +################################ +# Example Changelog File +# +# Note: This file, and files beginning with ".", and files that don't end in ".yml" will not be read. If you change this file, you will look really dumb. +# +# Your changelog will be merged with a master changelog. (New stuff added only, and only on the date entry for the day it was merged.) +# When it is, any changes listed below will disappear. +# +# Valid Prefixes: +# bugfix +# wip (For works in progress) +# tweak +# soundadd +# sounddel +# rscadd (general adding of nice things) +# rscdel (general deleting of nice things) +# imageadd +# imagedel +# maptweak +# spellcheck (typo fixes) +# experiment +################################# + +# Your name. +author: Nanako + +# Optional: Remove this file after generating master changelog. Useful for PR changelogs that won't get used again. +delete-after: True + +# Any changes you've made. See valid prefix list above. +# INDENT WITH TWO SPACES. NOT TABS. SPACES. +# SCREW THIS UP AND IT WON'T WORK. +# Also, all entries are changed into a single [] after a master changelog generation. Just remove the brackets when you add new entries. +# Please surround your changes in double quotes ("), as certain characters otherwise screws up compiling. The quotes will not show up in the changelog. +changes: + - bugfix: "Fixed some issues where creatures being sacrificed to pylons could bug out."