diff --git a/code/game/machinery/doors/windowdoor.dm b/code/game/machinery/doors/windowdoor.dm
index 45ff776d40..38afc122be 100644
--- a/code/game/machinery/doors/windowdoor.dm
+++ b/code/game/machinery/doors/windowdoor.dm
@@ -162,15 +162,9 @@
if(istype(user, /mob/living/carbon/alien/humanoid) || istype(user, /mob/living/carbon/slime/adult))
if(src.operating)
return
- src.health = max(0, src.health - 25)
playsound(src.loc, 'sound/effects/Glasshit.ogg', 75, 1)
visible_message("\red [user] smashes against the [src.name].", 1)
- if (src.health <= 0)
- new /obj/item/weapon/shard(src.loc)
- var/obj/item/weapon/cable_coil/CC = new /obj/item/weapon/cable_coil(src.loc)
- CC.amount = 2
- src.density = 0
- del(src)
+ take_damage(25)
else
return src.attack_hand(user)
@@ -202,16 +196,10 @@
//If it's a weapon, smash windoor. Unless it's an id card, agent card, ect.. then ignore it (Cards really shouldnt damage a door anyway)
if(src.density && istype(I, /obj/item/weapon) && !istype(I, /obj/item/weapon/card))
var/aforce = I.force
- if(I.damtype == BRUTE || I.damtype == BURN)
- src.health = max(0, src.health - aforce)
playsound(src.loc, 'sound/effects/Glasshit.ogg', 75, 1)
visible_message("\red [src] was hit by [I].")
- if (src.health <= 0)
- new /obj/item/weapon/shard(src.loc)
- var/obj/item/weapon/cable_coil/CC = new /obj/item/weapon/cable_coil(src.loc)
- CC.amount = 2
- src.density = 0
- del(src)
+ if(I.damtype == BRUTE || I.damtype == BURN)
+ take_damage(aforce)
return