fixes elevation being permanent if you spawn on it (#85952)

## About The Pull Request

1 line change that makes spawning on stuff such as table not offset you
forever

## Why It's Good For The Game

fixes #84121

## Changelog
🆑
fix: spawning on a table or other elevated object does not offset you
forever
/🆑
This commit is contained in:
jimmyl
2024-08-19 11:06:58 +00:00
committed by GitHub
parent a3657fe5a6
commit f2e93b63b1
+2 -2
View File
@@ -151,8 +151,8 @@
/datum/element/elevation_core/proc/on_initialized_on(turf/source, atom/movable/spawned)
SIGNAL_HANDLER
if(isliving(spawned))
elevate_mob(spawned)
if(isliving(spawned) && !HAS_TRAIT(spawned, TRAIT_ON_ELEVATED_SURFACE))
on_entered(entered = spawned)
/datum/element/elevation_core/proc/on_exited(turf/source, atom/movable/gone)
SIGNAL_HANDLER