Makes alarm sound on bash, so even if window/door destroyed will sound. RE: Issue #6552

Moves alarm code to when an object is attacked so that the alarm will sound even if the object is destroyed in one hit.