tgstation icon indicating copy to clipboard operation
tgstation copied to clipboard

Mecha spark system runtime on destruction. Fixes mecha draining infinite powercells

Open ShizCalev opened this issue 2 years ago • 0 comments

:cl: ShizCalev fix: Fixed mechas with infinite powercells draining the cells on destruction /:cl:

take_damage()'s parent chain starts the atom's qdel, so spark_system was null by the time it was called. This stopped the final hit from being logged properly.

Also cleaned up a duplicate definition for mecha/atom_destruction

ShizCalev avatar Aug 06 '22 17:08 ShizCalev