diff --git a/code/modules/assembly/mousetrap.dm b/code/modules/assembly/mousetrap.dm index 9c0b3e081e8..90098f8dbb9 100644 --- a/code/modules/assembly/mousetrap.dm +++ b/code/modules/assembly/mousetrap.dm @@ -114,23 +114,27 @@ update_appearance() var/obj/item/bodypart/affecting = null if(ishuman(target)) - var/mob/living/carbon/human/H = target - if(HAS_TRAIT(H, TRAIT_PIERCEIMMUNE)) + var/mob/living/carbon/human/victim = target + if(HAS_TRAIT(victim, TRAIT_PIERCEIMMUNE)) playsound(src, 'sound/effects/snap.ogg', 50, TRUE) pulse(FALSE) return FALSE switch(type) if("feet") - if(!H.shoes) - affecting = H.get_bodypart(pick(BODY_ZONE_L_LEG, BODY_ZONE_R_LEG)) - H.Paralyze(60) + if(!victim.shoes) + affecting = victim.get_bodypart(pick(BODY_ZONE_L_LEG, BODY_ZONE_R_LEG)) + victim.Paralyze(60) + else + to_chat(victim, span_notice("Your [victim.shoes] protects you from [src].")) if(BODY_ZONE_PRECISE_L_HAND, BODY_ZONE_PRECISE_R_HAND) - if(!H.gloves) - affecting = H.get_bodypart(type) - H.Stun(60) + if(!victim.gloves) + affecting = victim.get_bodypart(type) + victim.Stun(60) + else + to_chat(victim, span_notice("Your [victim.gloves] protects you from [src].")) if(affecting) if(affecting.receive_damage(1, 0)) - H.update_damage_overlays() + victim.update_damage_overlays() else if(ismouse(target)) var/mob/living/simple_animal/mouse/M = target visible_message(span_boldannounce("SPLAT!"))