Skip to content

Commit

Permalink
Fixes immobilized mobs being able to buckle onto chairs (#5317)
Browse files Browse the repository at this point in the history
# About the pull request

#5277, fixes the issue outlined here, incapacitated marines should not
be able to buckle themselves.

# Explain why it's good for the game

bug bad

# Changelog

:cl:
fix: fixes immobilized mobs being able to buckle themselves
/:cl:
  • Loading branch information
Cthulhu80 authored Dec 29, 2023
1 parent d7feab9 commit 0ff2e6f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions code/game/objects/objs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,11 @@
if (iszombie(user))
return

// mobs that become immobilized should not be able to buckle themselves.
if(M == user && HAS_TRAIT(user, TRAIT_IMMOBILIZED))
to_chat(user, SPAN_WARNING("You are unable to do this in your current state."))
return

if(density)
density = FALSE
if(!step(M, get_dir(M, src)) && loc != M.loc)
Expand Down

0 comments on commit 0ff2e6f

Please sign in to comment.