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

This commit is contained in:
Ghom
2021-07-12 08:23:00 +02:00
committed by GitHub
parent faeb380a2e
commit 577bcebeff
@@ -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