Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewJacksonThe2nd committed Feb 25, 2016
1 parent 38f3f1d commit dcbafb7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion code/modules/clothing/chameleon.dm
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
picked_item = V
if(!picked_item)
return
if(iscarbon(user))
if(isliving(user))
var/mob/living/C = user
if(C.stat != CONSCIOUS)
return
Expand All @@ -40,6 +40,10 @@
if(istype(target, /obj/item))
var/obj/item/I = target
I.item_state = initial(picked_item.item_state)
if(istype(I, /obj/item/clothing) && istype(initial(picked_item), /obj/item/clothing))
var/obj/item/clothing/CL = I
var/obj/item/clothing/PCL = picked_item
CL.flags_cover = initial(PCL.flags_cover)
target.icon = initial(picked_item.icon)

C.regenerate_icons() //so our overlays update.
Expand Down

0 comments on commit dcbafb7

Please sign in to comment.