[MIRROR] cannon balls should no longer destroy "indestructible" walls. (#6867)

* cannon balls should no longer destroy "indestructible" walls. (#60136)

* cannon balls should no longer destroy "indestructible" walls.

Co-authored-by: Ghom <42542238+Ghommie@users.noreply.github.com>
This commit is contained in:
SkyratBot
2021-07-12 21:47:53 +01:00
committed by GitHub
co-authored by Ghom
parent 7611fa6e86
commit c141aa24ae
@@ -23,8 +23,9 @@
hit_object.take_damage(80, BRUTE, BULLET, FALSE)
else if(isclosedturf(target))
damage -= max(damage - 30, 10) //lose extra momentum from busting through a wall
var/turf/closed/hit_turf = target
hit_turf.ScrapeAway()
if(!isindestructiblewall(target))
var/turf/closed/hit_turf = target
hit_turf.ScrapeAway()
return ..()
/obj/projectile/bullet/cannonball/explosive