While in the middle of a destroy chain the mob can no longer be associated with the client you need to clear huds from. This allows you to just pass a client into a different proc and has some more error checking to hopefully avoid visible issues for players if something goes wrong.
This fixes a runtime I cam across while working on something else.
Original PR: https://github.com/tgstation/tgstation/pull/85900
While in the middle of a destroy chain the mob can no longer be associated with the client you need to clear huds from. This allows you to just pass a client into a different proc and has some more error checking to hopefully avoid visible issues for players if something goes wrong.
This fixes a runtime I cam across while working on something else.