Fixed a bug that was causing the damage system to error out entirely.