Fixed brick armor damage calculation to avoid null pointer exceptions