mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 12:41:09 +01:00
Fixes runtime when trying to pull a turf (#96420)
## About The Pull Request No type check prior ## Why It's Good For The Game Runtime ## Changelog 🆑 fix: fixed a runtime when trying to pull a turf /🆑
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
SHOULD_NOT_OVERRIDE(TRUE)
|
||||
|
||||
. = ..()
|
||||
if(. || world.time < next_move || !can_perform_action(target, NOT_INSIDE_TARGET | SILENT_ADJACENCY | ALLOW_RESTING | FORBID_TELEKINESIS_REACH))
|
||||
if(. || !ismovable(target) || world.time < next_move || !can_perform_action(target, NOT_INSIDE_TARGET | SILENT_ADJACENCY | ALLOW_RESTING | FORBID_TELEKINESIS_REACH))
|
||||
return
|
||||
|
||||
. = TRUE
|
||||
|
||||
@@ -374,8 +374,9 @@
|
||||
now_pushing = FALSE
|
||||
|
||||
/mob/living/start_pulling(atom/movable/AM, state, force = pull_force, supress_message = FALSE)
|
||||
if(!AM || !src)
|
||||
if(!src)
|
||||
return FALSE
|
||||
ASSERT(ismovable(AM), "[src] attempted to pull [AM ? "[AM], a nonmovable atom" : "a null object"]")
|
||||
if(!(AM.can_be_pulled(src, force)))
|
||||
return FALSE
|
||||
if(throwing || !(mobility_flags & MOBILITY_PULL))
|
||||
|
||||
Reference in New Issue
Block a user