Fixed building attack bug