Skip to content

Commit

Permalink
Merge pull request #3487 from MistakeNot4892/machines
Browse files Browse the repository at this point in the history
Only brute and burn damage can dismantle machines.
  • Loading branch information
out-of-phaze authored Nov 5, 2023
2 parents 926aa04 + 8587a25 commit d2ef0d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/game/machinery/_machines_base/machinery_damage.dm
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
if(victim?.can_take_damage() && victim.is_functional())
amount -= victim.take_damage(amount, damtype)

if(amount)
if(amount && (damtype == BRUTE || damtype == BURN))
dismantle()

/obj/machinery/proc/get_damageable_component(var/damage_type)
Expand Down

0 comments on commit d2ef0d8

Please sign in to comment.