mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 02:34:00 +00:00
Merge pull request #4265 from Atermonera/conscious_strip
MouseDrop checks incapacitated() before giving inventory access
This commit is contained in:
@@ -534,6 +534,7 @@
|
||||
if(M != usr) return
|
||||
if(usr == src) return
|
||||
if(!Adjacent(usr)) return
|
||||
if(usr.incapacitated(INCAPACITATION_STUNNED | INCAPACITATION_FORCELYING | INCAPACITATION_KNOCKOUT | INCAPACITATION_RESTRAINED)) return //Incapacitated.
|
||||
if(istype(M,/mob/living/silicon/ai)) return
|
||||
show_inv(usr)
|
||||
|
||||
|
||||
4
html/changelogs/Atermonera-incap_inv.yml
Normal file
4
html/changelogs/Atermonera-incap_inv.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
author: Atermonera
|
||||
delete-after: True
|
||||
changes:
|
||||
- bugfix: "Incapacitated mobs can no longer open your inventory and steal your gubbins."
|
||||
Reference in New Issue
Block a user