Skip to content

Commit

Permalink
[MIRROR] Fixes placing mobs in mounted sleepers
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelbassil authored and SierraHelper committed Oct 17, 2023
1 parent 4261cbd commit a577fcc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/_onclick/item_attack.dm
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ avoid code duplication. This includes items that may sometimes act as a standard
return FALSE

// Target checks
if (!Adjacent(target))
if (isturf(target.loc) && !Adjacent(target))
if (!silent)
FEEDBACK_FAILURE(src, "You must remain next to \the [target].")
return FALSE
Expand Down
6 changes: 5 additions & 1 deletion code/modules/mob/mob.dm
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,11 @@

/mob/proc/start_pulling(atom/movable/AM)

if ( !AM || !usr || src==AM || !isturf(src.loc) ) //if there's no person pulling OR the person is pulling themself OR the object being pulled is inside something: abort!
if ( !AM || !usr || src==AM || !isturf(src.loc)) //if there's no person pulling OR the person is pulling themself OR the object being pulled is inside something: abort!
return

if (!Adjacent(AM))
to_chat(src, SPAN_WARNING("You must remain next to \the [AM]."))
return

if (AM.anchored)
Expand Down

0 comments on commit a577fcc

Please sign in to comment.