Merge pull request #7687 from Tramziller/Girder_fix

Fixes bug where girders can be destroyed with stun beams.
This commit is contained in:
PsiOmegaDelta
2015-01-04 23:50:36 +01:00

View File

@@ -8,6 +8,10 @@
bullet_act(var/obj/item/projectile/Proj)
//Tasers and the like should not damage girders.
if(Proj.damage_type == HALLOSS || Proj.damage_type == TOX || Proj.damage_type == CLONE)
return
if(istype(Proj, /obj/item/projectile/beam))
health -= Proj.damage
..()
@@ -245,6 +249,7 @@
del(src)
bullet_act(var/obj/item/projectile/Proj) //No beam check- How else will you destroy the cult girder with silver bullets?????
health -= Proj.damage
..()
if(health <= 0)