Merge pull request #4265 from Atermonera/conscious_strip

MouseDrop checks incapacitated() before giving inventory access
This commit is contained in:
Anewbe
2017-11-15 12:36:16 -06:00
committed by GitHub
2 changed files with 5 additions and 0 deletions

View File

@@ -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)

View File

@@ -0,0 +1,4 @@
author: Atermonera
delete-after: True
changes:
- bugfix: "Incapacitated mobs can no longer open your inventory and steal your gubbins."