Fix movement turf changer element to check openspace (#65757)

Fixes #65472 (The movement_turf_changer element allows creatures to step onto open space and fill them in )

This adds an openspace check for the movement_turf_changer element so that whatever mob is using it will fall through openspace properly.

I don't know what a moonicorn is but it sounds cool.
This commit is contained in:
Tim
2022-04-08 21:38:19 -07:00
committed by GitHub
parent f58f13c4ae
commit 3f13fda087
2 changed files with 11 additions and 6 deletions
@@ -26,7 +26,7 @@
SIGNAL_HANDLER
var/turf/destination = target.loc
if(!isturf(destination) || istype(destination, turf_type))
if(!isturf(destination) || istype(destination, turf_type) || isopenspaceturf(destination))
return
destination.PlaceOnTop(turf_type)