Merge pull request #5134 from CHOMPStation2/BlackMajor-patch-2

Fixes some small transit bug.
This commit is contained in:
Razgriz
2022-10-15 23:13:16 -07:00
committed by GitHub
4 changed files with 7 additions and 9 deletions

View File

@@ -71,8 +71,8 @@ when portals are shortly lived, or when portals are made to be obvious with spec
// Called when something touches the portal, and usually teleports them to the other side.
/obj/effect/map_effect/portal/Crossed(atom/movable/AM)
if(AM.is_incorporeal())
return
/*if(AM.is_incorporeal())
return CHOMPEdit: This is why phased critters couldn't enter z transits */
..()
if(!AM)
return

View File

@@ -13,13 +13,11 @@
return 0
/obj/effect/step_trigger/Crossed(atom/movable/H as mob|obj)
if(H.is_incorporeal())
return
if((istype(H, /mob/observer) && !affect_ghosts) || (!istype(H, /mob/observer) && H.is_incorporeal() && !affect_ghosts))
return //CHOMPEdit: Fixing some step trigger stuff to coincide with incorporeal check changes
..()
if(!H)
return
if(istype(H, /mob/observer) && !affect_ghosts)
return
Trigger(H)